Skip to content

Apache Lucene open-source search software

SOLR-4513: We can speed up the Unload Collections API test quite a bit by not loading any cores on startup.

Mark Robert Miller633eac1cd74a
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java
index 8d1cc0614d4..63f0633b645 100644
--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java
@@ -92,9 +92,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
@BeforeClass
public static void beforeThisClass2() throws Exception {
- // TODO: we use an fs based dir because something
- // like a ram dir will not recover correctly right now
- useFactory(null);
+
}
@Before
diff --git a/solr/core/src/test/org/apache/solr/cloud/UnloadDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/UnloadDistributedZkTest.java
index acf7fb1742f..e617be94baa 100644
--- a/solr/core/src/test/org/apache/solr/cloud/UnloadDistributedZkTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/UnloadDistributedZkTest.java
@@ -59,9 +59,13 @@ public class UnloadDistributedZkTest extends BasicDistributedZkTest {
super.setUp();
}
+ protected String getSolrXml() {
+ return "solr-no-core.xml";
+ }
public UnloadDistributedZkTest() {
super();
+ checkCreatedVsState = false;
}
@Override