Apache Lucene open-source search software
tests: improve test
Mark Robert Millerb838ab4b9653
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.javaindex 398e7bd67d6..cc764bb07f2 100644--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java@@ -678,7 +678,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa// create new collections rapid fireMap<String,List<Integer>> collectionInfos = new HashMap<>();- int cnt = random().nextInt(TEST_NIGHTLY ? 6 : 3) + 1;+ int cnt = random().nextInt(TEST_NIGHTLY ? 6 : 1) + 1;for (int i = 0; i < cnt; i++) {int numShards = TestUtil.nextInt(random(), 0, shardCount) + 1;@@ -973,7 +973,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBapublic void run() {// create new collections rapid fireMap<String,List<Integer>> collectionInfos = new HashMap<>();- int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 3) + 1;+ int cnt = random().nextInt(TEST_NIGHTLY ? 13 : 1) + 1;for (int i = 0; i < cnt; i++) {String collectionName = "awholynewstresscollection_" + name + "_" + i;diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.javaindex 50a650cf5f1..3a1ef0d0909 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java@@ -320,7 +320,6 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes}-protected void waitForCollection(ZkStateReader reader, String collection, int slices) throws Exception {// wait until shards have started registering...int cnt = 30;@@ -1664,12 +1663,6 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTesreturn res;}- protected void runCollectionAdminCommand(ModifiableSolrParams params){-- ;-- }-protected CollectionAdminResponse createCollection(Map<String,List<Integer>> collectionInfos,String collectionName, int numShards, int replicationFactor, int maxShardsPerNode, SolrServer client, String createNodeSetStr) throws SolrServerException, IOException {