change timeout to 5s in  TestBlockUntilConnected

Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/7c35e441
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/7c35e441
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/7c35e441

Branch: refs/heads/CURATOR-351
Commit: 7c35e441b0a1b636e68c2e0f74cdb8e7fae69cb5
Parents: 651ac59
Author: Zoltan Szekeres <[email protected]>
Authored: Thu Jan 26 11:53:53 2017 -0500
Committer: Zoltan Szekeres <[email protected]>
Committed: Thu Jan 26 11:53:53 2017 -0500

----------------------------------------------------------------------
 .../org/apache/curator/framework/imps/TestBlockUntilConnected.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/7c35e441/curator-framework/src/test/java/org/apache/curator/framework/imps/TestBlockUntilConnected.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestBlockUntilConnected.java
 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestBlockUntilConnected.java
index 7ea0849..debf7f9 100644
--- 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestBlockUntilConnected.java
+++ 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestBlockUntilConnected.java
@@ -320,7 +320,7 @@ public class TestBlockUntilConnected extends 
BaseClassForTests
             //Wait until we get expired event
             Assert.assertTrue(timing.awaitLatch(expiredLatch), "Failed to get 
Expired event");
 
-            Assert.assertTrue(client.blockUntilConnected(50, 
TimeUnit.SECONDS), "Not connected");
+            Assert.assertTrue(client.blockUntilConnected(5, TimeUnit.SECONDS), 
"Not connected");
         }
         catch ( Exception e )
         {

Reply via email to