Revert the AbstractZkTestCase changes for now

was: LUCENE-6795: Fix Solr tests that break RamUsageTester on Java 9 Jigsaw

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2015-09-13 21:32:48 +00:00
parent 690f6d6578
commit 8d44733846
1 changed files with 9 additions and 9 deletions

View File

@ -46,14 +46,7 @@ public abstract class AbstractZkTestCase extends SolrTestCaseJ4 {
public static File SOLRHOME;
protected static ZkTestServer zkServer;
protected static String zkDir;
@BeforeClass
public static void azt_beforeClass() throws Exception {
static {
try {
SOLRHOME = new File(TEST_HOME());
} catch (RuntimeException e) {
@ -61,7 +54,15 @@ public abstract class AbstractZkTestCase extends SolrTestCaseJ4 {
// solrj tests not working with TEST_HOME()
// must override getSolrHome
}
}
protected static ZkTestServer zkServer;
protected static String zkDir;
@BeforeClass
public static void azt_beforeClass() throws Exception {
zkDir = createTempDir("zkData").toFile().getAbsolutePath();
zkServer = new ZkTestServer(zkDir);
zkServer.run();
@ -160,7 +161,6 @@ public abstract class AbstractZkTestCase extends SolrTestCaseJ4 {
zkServer = null;
}
zkDir = null;
SOLRHOME = null;
}
protected void printLayout(String zkHost) throws Exception {