Add 2016 to Docs Copyright
Close `CuratorFramework` in the `@AfterClass` for `LeaderInitiatorFactoryBeanTests` with the hope to overcome hanging on the CI server: https://build.spring.io/browse/INT-AT42SIO-75/
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));
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<year>2013</year>
|
||||
<year>2014</year>
|
||||
<year>2015</year>
|
||||
<year>2016</year>
|
||||
<holder>
|
||||
Pivotal Software, Inc. All Rights Reserved.
|
||||
</holder>
|
||||
|
||||
Reference in New Issue
Block a user