zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cami...@apache.org
Subject svn commit: r1231807 - in /zookeeper/branches/branch-3.4: CHANGES.txt src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
Date Mon, 16 Jan 2012 02:24:30 GMT
Author: camille
Date: Mon Jan 16 02:24:30 2012
New Revision: 1231807

URL: http://svn.apache.org/viewvc?rev=1231807&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/branches/branch-3.4/CHANGES.txt
    zookeeper/branches/branch-3.4/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java

Modified: zookeeper/branches/branch-3.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.4/CHANGES.txt?rev=1231807&r1=1231806&r2=1231807&view=diff
==============================================================================
--- zookeeper/branches/branch-3.4/CHANGES.txt (original)
+++ zookeeper/branches/branch-3.4/CHANGES.txt Mon Jan 16 02:24:30 2012
@@ -11,6 +11,9 @@ BUGFIXES: 
   Eclipse project files excluded (Harsh J via phunt)
 
   ZOOKEEPER-1343. getEpochToPropose should check if lastAcceptedEpoch is greater or equal
than epoch (fpj via breed)
+  
+  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)
 
 Release 3.4.2 - 2011-12-21
 

Modified: zookeeper/branches/branch-3.4/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.4/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java?rev=1231807&r1=1231806&r2=1231807&view=diff
==============================================================================
--- zookeeper/branches/branch-3.4/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
(original)
+++ zookeeper/branches/branch-3.4/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
Mon Jan 16 02:24:30 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