Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

tests: improve this test.

Mark Robert Miller742aadf5a26b
diff --git a/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java b/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java
index a15a021706a..e7997b90798 100644
--- a/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java
@@ -62,9 +62,15 @@ public class RecoveryZkTest extends AbstractFullDistribZkTestBase {
// start a couple indexing threads
- int[] maxDocList = new int[] {300, 700, 1200, 1350, 5000, 15000};
-
- int maxDoc = maxDocList[random().nextInt(maxDocList.length - 1)];
+ int[] maxDocList = new int[] {300, 700, 1200, 1350, 3000};
+ int[] maxDocNightlyList = new int[] {3000, 7000, 12000, 30000, 45000, 60000};
+
+ int maxDoc;
+ if (!TEST_NIGHTLY) {
+ maxDoc = maxDocList[random().nextInt(maxDocList.length - 1)];
+ } else {
+ maxDoc = maxDocNightlyList[random().nextInt(maxDocList.length - 1)];
+ }
indexThread = new StopableIndexingThread(controlClient, cloudClient, "1", true, maxDoc);
indexThread.start();
@@ -100,7 +106,7 @@ public class RecoveryZkTest extends AbstractFullDistribZkTestBase {
Thread.sleep(1000);
- waitForThingsToLevelOut(90);
+ waitForThingsToLevelOut(120);
Thread.sleep(2000);