You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/10/05 20:49:54 UTC
svn commit: r1394722 -
/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
Author: rmuir
Date: Fri Oct 5 18:49:53 2012
New Revision: 1394722
URL: http://svn.apache.org/viewvc?rev=1394722&view=rev
Log:
make tests more reproducible
Modified:
lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java?rev=1394722&r1=1394721&r2=1394722&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java (original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java Fri Oct 5 18:49:53 2012
@@ -47,6 +47,7 @@ public class AlcoholicMergePolicy extend
public AlcoholicMergePolicy(TimeZone tz, Random random) {
this.calendar = new GregorianCalendar(tz, Locale.ROOT);
+ calendar.setTimeInMillis(_TestUtil.nextLong(random, 0, Long.MAX_VALUE));
this.random = random;
maxMergeSize = _TestUtil.nextInt(random, 1024*1024, Integer.MAX_VALUE);
}