diff --git a/curator-framework/src/test/java/org/apache/curator/framework/state/TestConnectionStateManager.java b/curator-framework/src/test/java/org/apache/curator/framework/state/TestConnectionStateManager.java index 3f4eefc8fb..87c07522a3 100644 --- a/curator-framework/src/test/java/org/apache/curator/framework/state/TestConnectionStateManager.java +++ b/curator-framework/src/test/java/org/apache/curator/framework/state/TestConnectionStateManager.java @@ -94,7 +94,7 @@ public void stateChanged(CuratorFramework client, ConnectionState newState) @Test public void testConnectionStateRecoversFromUnexpectedExpiredConnection() throws Exception { - assumeTrue((Info.MAJOR == 3 && Info.MINOR >= 6) || (Info.MAJOR > 4), "Zookeeper version must be 3.6 or higher"); + assumeTrue(() -> (getMajor() == 3 && getMinor() >= 6) || (getMajor() > 4), "Zookeeper version must be 3.6 or higher"); Timing2 timing = new Timing2(); CuratorFramework client = CuratorFrameworkFactory.builder() .connectString(server.getConnectString()) @@ -131,4 +131,14 @@ public String getPath() { CloseableUtils.closeQuietly(client); } } + + public int getMajor() { + System.err.println("------- MAJOR: " + Info.MAJOR); + return Info.MAJOR; + } + + public int getMinor() { + System.err.println("------- MINOR: " + Info.MINOR); + return Info.MINOR; + } }