From ebc4f0d35b7e6461403e9a98d588ef643ad9e505 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 5 Aug 2010 18:32:15 +0000 Subject: [PATCH] vary IWC.maxThreadStates randomly in tests git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982725 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/test/org/apache/lucene/util/LuceneTestCaseJ4.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/src/test/org/apache/lucene/util/LuceneTestCaseJ4.java b/lucene/src/test/org/apache/lucene/util/LuceneTestCaseJ4.java index 6e0127bdb2f..c16cf2a1fec 100644 --- a/lucene/src/test/org/apache/lucene/util/LuceneTestCaseJ4.java +++ b/lucene/src/test/org/apache/lucene/util/LuceneTestCaseJ4.java @@ -491,6 +491,9 @@ public class LuceneTestCaseJ4 { if (r.nextBoolean()) { c.setTermIndexInterval(_TestUtil.nextInt(r, 1, 1000)); } + if (r.nextBoolean()) { + c.setMaxThreadStates(_TestUtil.nextInt(r, 1, 20)); + } if (c.getMergePolicy() instanceof LogMergePolicy) { LogMergePolicy logmp = (LogMergePolicy) c.getMergePolicy();