Add shutdown of clusters -- not shutting down was causing subsequent TestMergeTool to fail because there was running zk

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021789 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-10-12 15:01:48 +00:00
parent fc32ccdb2b
commit d405dbeca6
1 changed files with 19 additions and 15 deletions

View File

@ -34,7 +34,6 @@ import static org.junit.Assert.assertEquals;
* only for "unit'ish tests".
*/
public class TestMultiClusters {
private static final byte[] TABLE_NAME = Bytes.toBytes("test");
private static final byte[] FAM_NAME = Bytes.toBytes("fam");
private static final byte[] ROW = Bytes.toBytes("row");
@ -61,6 +60,7 @@ public class TestMultiClusters {
// They share the same ensemble, but homed differently
utility2.setZkCluster(utility1.getZkCluster());
try {
utility1.startMiniCluster();
utility2.startMiniCluster();
@ -78,6 +78,10 @@ public class TestMultiClusters {
res = table2.get(get);
assertEquals(0, res.size());
} finally {
utility1.shutdownMiniCluster();
utility2.shutdownMiniCluster();
utility1.shutdownMiniZKCluster();
}
}
}