mirror of https://github.com/apache/lucene.git
SOLR-3199: this test was not clearing the bootstrap_confdir sys prop it sets
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1296847 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c7c6890ad
commit
5007616835
|
@ -223,6 +223,9 @@ public class ZkControllerTest extends SolrTestCaseJ4 {
|
|||
Thread.sleep(2000);
|
||||
assertEquals("shard was not unregistered", 1, zkController.getZkStateReader().getCloudState().getSlice("collection1", "shard1").getShards().size());
|
||||
} finally {
|
||||
System.clearProperty("solrcloud.skip.autorecovery");
|
||||
System.clearProperty(ZkStateReader.NUM_SHARDS_PROP);
|
||||
System.clearProperty("bootstrap_confdir");
|
||||
if (DEBUG) {
|
||||
if (zkController != null) {
|
||||
zkClient.printLayoutToStdOut();
|
||||
|
@ -235,8 +238,6 @@ public class ZkControllerTest extends SolrTestCaseJ4 {
|
|||
zkController.close();
|
||||
}
|
||||
server.shutdown();
|
||||
System.clearProperty("solrcloud.skip.autorecovery");
|
||||
System.clearProperty(ZkStateReader.NUM_SHARDS_PROP);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue