mirror of https://github.com/apache/lucene.git
tests: speed up this test for non nightly runs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1579350 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1109c1275b
commit
1ae8b73a89
|
@ -130,7 +130,7 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
|
|||
del("*:*");
|
||||
|
||||
List<StopableThread> threads = new ArrayList<>();
|
||||
int threadCount = 1;
|
||||
int threadCount = TEST_NIGHTLY ? 3 : 1;
|
||||
int i = 0;
|
||||
for (i = 0; i < threadCount; i++) {
|
||||
StopableIndexingThread indexThread = new StopableIndexingThread(controlClient, cloudClient, Integer.toString(i), true);
|
||||
|
@ -167,7 +167,7 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
|
|||
runTimes = new int[] {5000, 6000, 10000, 15000, 25000, 30000,
|
||||
30000, 45000, 90000, 120000};
|
||||
} else {
|
||||
runTimes = new int[] {145000, 240000, 300000};
|
||||
runTimes = new int[] {5000, 7000, 15000};
|
||||
}
|
||||
runLength = runTimes[random().nextInt(runTimes.length - 1)];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue