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:51:09 UTC

svn commit: r1579350 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java

Author: markrmiller
Date: Wed Mar 19 18:51:09 2014
New Revision: 1579350

URL: http://svn.apache.org/r1579350
Log:
tests: speed up this test for non nightly runs.

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java?rev=1579350&r1=1579349&r2=1579350&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java Wed Mar 19 18:51:09 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);
@@ -167,7 +167,7 @@ public class ChaosMonkeyNothingIsSafeTes
             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)];
         }