curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [2/3] curator git commit: Need some time after killing session now that it happens almost immediately
Date Tue, 08 Sep 2015 17:23:04 GMT
Need some time after killing session now that it happens almost immediately


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

Branch: refs/heads/CURATOR-3.0
Commit: d5b0d0d523a5e84f4760a0a6e26738a2fce11642
Parents: 2e8f252
Author: randgalt <randgalt@apache.org>
Authored: Tue Sep 8 11:46:51 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Sep 8 11:46:51 2015 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/curator/TestSessionFailRetryLoop.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/d5b0d0d5/curator-client/src/test/java/org/apache/curator/TestSessionFailRetryLoop.java
----------------------------------------------------------------------
diff --git a/curator-client/src/test/java/org/apache/curator/TestSessionFailRetryLoop.java
b/curator-client/src/test/java/org/apache/curator/TestSessionFailRetryLoop.java
index 937726e..b33939f 100644
--- a/curator-client/src/test/java/org/apache/curator/TestSessionFailRetryLoop.java
+++ b/curator-client/src/test/java/org/apache/curator/TestSessionFailRetryLoop.java
@@ -175,7 +175,7 @@ public class TestSessionFailRetryLoop extends BaseClassForTests
     @Test
     public void     testBasic() throws Exception
     {
-        Timing                          timing = new Timing();
+        final Timing                          timing = new Timing();
         final CuratorZookeeperClient    client = new CuratorZookeeperClient(server.getConnectString(),
timing.session(), timing.connection(), null, new ExponentialBackoffRetry(100, 3));
         SessionFailRetryLoop            retryLoop = client.newSessionFailRetryLoop(SessionFailRetryLoop.Mode.FAIL);
         retryLoop.start();
@@ -199,6 +199,8 @@ public class TestSessionFailRetryLoop extends BaseClassForTests
                                     Assert.assertNull(client.getZooKeeper().exists("/foo/bar",
false));
                                     KillSession.kill(client.getZooKeeper(), server.getConnectString());
 
+                                    timing.sleepABit();
+
                                     client.getZooKeeper();
                                     client.blockUntilConnectedOrTimedOut();
                                     Assert.assertNull(client.getZooKeeper().exists("/foo/bar",
false));


Mime
View raw message