You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/12/19 20:52:52 UTC
svn commit: r1220922 -
/lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
Author: mikemccand
Date: Mon Dec 19 19:52:52 2011
New Revision: 1220922
URL: http://svn.apache.org/viewvc?rev=1220922&view=rev
Log:
make test more evil
Modified:
lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java?rev=1220922&r1=1220921&r2=1220922&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestRollingUpdates.java Mon Dec 19 19:52:52 2011
@@ -45,7 +45,7 @@ public class TestRollingUpdates extends
final int SIZE = atLeast(20);
int id = 0;
IndexReader r = null;
- final int numUpdates = (int) (SIZE * (2+random.nextDouble()));
+ final int numUpdates = (int) (SIZE * (2+(TEST_NIGHTLY ? 200*random.nextDouble() : 5*random.nextDouble())));
if (VERBOSE) {
System.out.println("TEST: numUpdates=" + numUpdates);
}