You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2014/03/19 19:53:48 UTC
svn commit: r1579351 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/core/
solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
Author: markrmiller
Date: Wed Mar 19 18:53:48 2014
New Revision: 1579351
URL: http://svn.apache.org/r1579351
Log:
tests: speed up this test for non nightly runs.
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/solr/ (props changed)
lucene/dev/branches/branch_4x/solr/core/ (props changed)
lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
Modified: lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java?rev=1579351&r1=1579350&r2=1579351&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java Wed Mar 19 18:53:48 2014
@@ -130,7 +130,7 @@ public class ChaosMonkeyNothingIsSafeTes
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);
@@ -162,8 +162,13 @@ public class ChaosMonkeyNothingIsSafeTes
if (RUN_LENGTH != -1) {
runLength = RUN_LENGTH;
} else {
- int[] runTimes = new int[] {5000, 6000, 10000, 15000, 25000, 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)];
}