curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [3/3] curator git commit: Killed sessions now go directly to LOST (as they should)
Date Tue, 08 Sep 2015 17:23:05 GMT
Killed sessions now go directly to LOST (as they should)


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

Branch: refs/heads/CURATOR-3.0
Commit: b161867c1db03c279be0c0ce1eb091bb3372811d
Parents: d5b0d0d
Author: randgalt <randgalt@apache.org>
Authored: Tue Sep 8 11:47:19 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Sep 8 11:47:19 2015 -0500

----------------------------------------------------------------------
 .../curator/framework/imps/TestEnabledSessionExpiredState.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/b161867c/curator-framework/src/test/java/org/apache/curator/framework/imps/TestEnabledSessionExpiredState.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestEnabledSessionExpiredState.java
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestEnabledSessionExpiredState.java
index 490e75e..7114e48 100644
--- a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestEnabledSessionExpiredState.java
+++ b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestEnabledSessionExpiredState.java
@@ -124,8 +124,7 @@ public class TestEnabledSessionExpiredState extends BaseClassForTests
 
         KillSession.kill(client.getZookeeperClient().getZooKeeper(), server.getConnectString());
 
-        Assert.assertEquals(states.poll(timing.milliseconds(), TimeUnit.MILLISECONDS), ConnectionState.SUSPENDED);
-        Assert.assertEquals(states.poll(timing.milliseconds(), TimeUnit.MILLISECONDS), ConnectionState.LOST);
+        Assert.assertEquals(states.poll(timing.forSessionSleep().milliseconds(), TimeUnit.MILLISECONDS),
ConnectionState.LOST);
         Assert.assertEquals(states.poll(timing.milliseconds(), TimeUnit.MILLISECONDS), ConnectionState.RECONNECTED);
     }
 


Mime
View raw message