Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Mark Robert Miller8450b95c70bb
diff --git a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java
index ab37a4e40fa..33bc4b6b3dc 100644
--- a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeySafeLeaderTest.java
@@ -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,
- 30000, 45000, 90000, 120000};
+ 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)];
}