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:51:01 UTC
svn commit: r1394725 - in /lucene/dev/branches/lucene_solr_4_0: ./ lucene/
lucene/test-framework/
lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
Author: rmuir
Date: Fri Oct 5 18:51:00 2012
New Revision: 1394725
URL: http://svn.apache.org/viewvc?rev=1394725&view=rev
Log:
make tests more reproducible
Modified:
lucene/dev/branches/lucene_solr_4_0/ (props changed)
lucene/dev/branches/lucene_solr_4_0/lucene/ (props changed)
lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/ (props changed)
lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
Modified: lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java?rev=1394725&r1=1394724&r2=1394725&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java (original)
+++ lucene/dev/branches/lucene_solr_4_0/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java Fri Oct 5 18:51:00 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);
}