tests: temp hack to close unused core container

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1023645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-10-18 03:47:06 +00:00
parent c711709168
commit 7c80b7e7a0
1 changed files with 11 additions and 6 deletions

View File

@ -42,23 +42,28 @@ public abstract class AbstractZkTestCase extends SolrTestCaseJ4 {
protected static Logger log = LoggerFactory
.getLogger(AbstractZkTestCase.class);
protected ZkTestServer zkServer;
protected static ZkTestServer zkServer;
protected String zkDir;
protected static String zkDir;
public AbstractZkTestCase() {
}
@BeforeClass
public static void beforeClass() throws Exception {
public static void azt_beforeClass() throws Exception {
}
@Override
public void setUp() throws Exception {
super.setUp();
if (h != null) {
log.warn("HACK: closing previous test harness");
h.close();
h=null;
}
zkDir = dataDir.getAbsolutePath() + File.separator
+ "zookeeper/server1/data";
zkServer = new ZkTestServer(zkDir);