TestTreeCache now uses the improved KillSession2 but that results in different event ordering
Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/097083c4 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/097083c4 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/097083c4 Branch: refs/heads/CURATOR-426 Commit: 097083c4a2cd2e252c6f3b57e3e837e4a9ecabc9 Parents: 242b701 Author: randgalt <randg...@apache.org> Authored: Thu Jul 20 10:53:52 2017 -0500 Committer: randgalt <randg...@apache.org> Committed: Thu Jul 20 10:53:52 2017 -0500 ---------------------------------------------------------------------- .../org/apache/curator/framework/recipes/cache/TestTreeCache.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/097083c4/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java index 409cc48..a53627a 100644 --- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java +++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java @@ -424,11 +424,10 @@ public class TestTreeCache extends BaseTestTreeCache assertEvent(TreeCacheEvent.Type.NODE_ADDED, "/test/me"); KillSession2.kill(client.getZookeeperClient().getZooKeeper()); - assertEvent(TreeCacheEvent.Type.CONNECTION_SUSPENDED); assertEvent(TreeCacheEvent.Type.CONNECTION_LOST); assertEvent(TreeCacheEvent.Type.CONNECTION_RECONNECTED); - assertEvent(TreeCacheEvent.Type.NODE_REMOVED, "/test/me", "data".getBytes()); assertEvent(TreeCacheEvent.Type.INITIALIZED); + assertEvent(TreeCacheEvent.Type.NODE_REMOVED, "/test/me", "data".getBytes()); assertNoMoreEvents(); }