Updated Branches: refs/heads/apache-blur-0.2 89209a0a3 -> 7e55d54c8
Added closing ZK client to test. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/82072ff7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/82072ff7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/82072ff7 Branch: refs/heads/apache-blur-0.2 Commit: 82072ff7ae0c46e74aeff0dbe5dfc191e4c9c083 Parents: 89209a0 Author: Aaron McCurry <[email protected]> Authored: Wed Oct 9 09:55:29 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Wed Oct 9 09:55:29 2013 -0400 ---------------------------------------------------------------------- .../indexserver/MasterBasedDistributedLayoutFactoryTest.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/82072ff7/blur-core/src/test/java/org/apache/blur/manager/indexserver/MasterBasedDistributedLayoutFactoryTest.java ---------------------------------------------------------------------- diff --git a/blur-core/src/test/java/org/apache/blur/manager/indexserver/MasterBasedDistributedLayoutFactoryTest.java b/blur-core/src/test/java/org/apache/blur/manager/indexserver/MasterBasedDistributedLayoutFactoryTest.java index 65bea5b..87b95ad 100644 --- a/blur-core/src/test/java/org/apache/blur/manager/indexserver/MasterBasedDistributedLayoutFactoryTest.java +++ b/blur-core/src/test/java/org/apache/blur/manager/indexserver/MasterBasedDistributedLayoutFactoryTest.java @@ -32,6 +32,7 @@ import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.data.Stat; +import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; @@ -68,6 +69,11 @@ public class MasterBasedDistributedLayoutFactoryTest { }); rmr(_zooKeeper, storagePath); } + + @After + public void teardown() throws InterruptedException { + _zooKeeper.close(); + } @Test public void testDecreaseInServers() throws IOException, KeeperException, InterruptedException {
