mirror of https://github.com/apache/lucene.git
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:
parent
0e9270da4c
commit
ebc4f0d35b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue