vary IWC.maxThreadStates randomly in tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-08-05 18:32:15 +00:00
parent 0e9270da4c
commit ebc4f0d35b
1 changed files with 3 additions and 0 deletions

View File

@ -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();