mirror of https://github.com/apache/lucene.git
tests: improve this test.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1580703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38e4a746e2
commit
742aadf5a2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue