curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: sleep a bit so that session can actually expire
Date Tue, 08 Sep 2015 18:09:08 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-3.0 48824ebe0 -> 30d449ea5


sleep a bit so that session can actually expire


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

Branch: refs/heads/CURATOR-3.0
Commit: 30d449ea5b369805621ee78a36d0a8724473f366
Parents: 48824eb
Author: randgalt <randgalt@apache.org>
Authored: Tue Sep 8 13:09:01 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Sep 8 13:09:01 2015 -0500

----------------------------------------------------------------------
 .../framework/recipes/nodes/TestPersistentEphemeralNode.java       | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/30d449ea/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
index e182ec0..b62675e 100644
--- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
+++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestPersistentEphemeralNode.java
@@ -378,6 +378,8 @@ public class TestPersistentEphemeralNode extends BaseClassForTests
                 // Kill the session, thus cleaning up the node...
                 KillSession.kill(curator.getZookeeperClient().getZooKeeper());
 
+                timing.sleepABit();
+
                 // Make sure the node ended up getting deleted...
                 assertTrue(deletionTrigger.firedWithin(timing.forSessionSleep().seconds(),
TimeUnit.SECONDS));
                 node.debugReconnectLatch.countDown();


Mime
View raw message