From 6c9b9132d5baa5f1b2cf09ed824ebda52b38c28e Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 5 Oct 2012 18:49:53 +0000 Subject: [PATCH] make tests more reproducible git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1394722 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/index/AlcoholicMergePolicy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java b/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java index 1ea95e12cca..5afce7ba71c 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/AlcoholicMergePolicy.java @@ -47,6 +47,7 @@ public class AlcoholicMergePolicy extends LogMergePolicy { 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); }