LUCENE-8135: Fix number of clauses randomization.

This commit is contained in:
Adrien Grand 2019-05-28 09:53:58 +02:00
parent 6ac31c6db3
commit c252b92caa
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public class TestWANDScorer extends LuceneTestCase {
for (int iter = 0; iter < 100; ++iter) {
int start = random().nextInt(10);
int numClauses = 2;//random().nextInt(1 << random().nextInt(5));
int numClauses = random().nextInt(1 << random().nextInt(5));
BooleanQuery.Builder builder = new BooleanQuery.Builder();
for (int i = 0; i < numClauses; ++i) {
builder.add(maybeWrap(new TermQuery(new Term("foo", Integer.toString(start + i)))), Occur.SHOULD);