Upgrade to ZooKeeper-3.4.7
This commit is contained in:
@@ -25,6 +25,7 @@ import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.curator.framework.CuratorFramework;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -66,6 +67,13 @@ public class LeaderInitiatorFactoryBeanTests extends ZookeeperTestSupport {
|
||||
client = createNewClient();
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void closeClient() {
|
||||
if (client != null) {
|
||||
client.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
assertTrue(this.config.latch1.await(10, TimeUnit.SECONDS));
|
||||
|
||||
Reference in New Issue
Block a user