From 742aadf5a26b30c578db9a098eb2ae6954aadb61 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Mon, 24 Mar 2014 02:28:05 +0000 Subject: [PATCH] tests: improve this test. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1580703 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/solr/cloud/RecoveryZkTest.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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[] maxDocList = new int[] {300, 700, 1200, 1350, 3000}; + int[] maxDocNightlyList = new int[] {3000, 7000, 12000, 30000, 45000, 60000}; - int maxDoc = maxDocList[random().nextInt(maxDocList.length - 1)]; + 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);