Updated Branches:
  refs/heads/master b824561e6 -> 2311853db

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/c378790d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/c378790d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/c378790d

Branch: refs/heads/master
Commit: c378790d8f9b3f0fb371a267a49a3f1bd34d6af0
Parents: b824561
Author: Aaron McCurry <[email protected]>
Authored: Wed Oct 9 09:55:29 2013 -0400
Committer: Aaron McCurry <[email protected]>
Committed: Wed Oct 9 09:56:00 2013 -0400

----------------------------------------------------------------------
 .../indexserver/MasterBasedDistributedLayoutFactoryTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c378790d/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 {

Reply via email to