Parcourir la source

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)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1231806 13f79535-47bb-0310-9956-ffa450edef68
Camille Fournier il y a 13 ans
Parent
commit
d4b27432c8

+ 3 - 0
CHANGES.txt

@@ -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:
 

+ 1 - 1
src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java

@@ -66,7 +66,7 @@ public class StaticHostProviderTest extends ZKTestCase {
         long start = System.currentTimeMillis();
         hostProvider.next(0);
         long stop = System.currentTimeMillis();
-        assertTrue(10000 > stop - start);
+        assertTrue(5 > stop - start);
     }
 
     @Test