SOLR-6418: ChaosMonkeySafeLeaderTest is to slow on non nightly runs sometimes.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1620162 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-08-24 17:14:18 +00:00
parent 7f51411223
commit 8450b95c70
1 changed files with 7 additions and 2 deletions

View File

@ -117,8 +117,13 @@ public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase {
if (RUN_LENGTH != -1) {
runLength = RUN_LENGTH;
} else {
int[] runTimes = new int[] {5000, 6000, 10000, 25000, 27000, 30000,
int[] runTimes;
if (TEST_NIGHTLY) {
runTimes = new int[] {5000, 6000, 10000, 15000, 25000, 30000,
30000, 45000, 90000, 120000};
} else {
runTimes = new int[] {5000, 7000, 15000};
}
runLength = runTimes[random().nextInt(runTimes.length - 1)];
}