zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cami...@apache.org
Subject svn commit: r1231806 - in /zookeeper/trunk: CHANGES.txt src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
Date Mon, 16 Jan 2012 02:19:01 GMT
Author: camille
Date: Mon Jan 16 02:19:01 2012
New Revision: 1231806

URL: http://svn.apache.org/viewvc?rev=1231806&view=rev
Log:
ZOOKEEPER-1358. In StaticHostProviderTest.java, testNextDoesNotSleepForZero tests that hostProvider.next(0)
doesn't sleep by checking that the latency of this call is less than 10sec (Alex Shraer via
camille)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1231806&r1=1231805&r2=1231806&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Mon Jan 16 02:19:01 2012
@@ -96,6 +96,9 @@ BUGFIXES:
   (Will Johnson via phunt)
 
   ZOOKEEPER-1294. One of the zookeeper server is not accepting any requests (Kavita Sharma
via henryr)
+  
+  ZOOKEEPER-1358. In StaticHostProviderTest.java, testNextDoesNotSleepForZero tests that
hostProvider.next(0) 
+  doesn't sleep by checking that the latency of this call is less than 10sec (Alex Shraer
via camille)
  
 IMPROVEMENTS:
 

Modified: zookeeper/trunk/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java?rev=1231806&r1=1231805&r2=1231806&view=diff
==============================================================================
--- zookeeper/trunk/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java (original)
+++ zookeeper/trunk/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java Mon
Jan 16 02:19:01 2012
@@ -66,7 +66,7 @@ public class StaticHostProviderTest exte
         long start = System.currentTimeMillis();
         hostProvider.next(0);
         long stop = System.currentTimeMillis();
-        assertTrue(10000 > stop - start);
+        assertTrue(5 > stop - start);
     }
 
     @Test



Mime
View raw message