mirror of https://github.com/apache/lucene.git
Fix TestDisiPriorityQueue test bug
This commit is contained in:
parent
39e7597f6e
commit
1bc38b7d1f
|
@ -29,7 +29,7 @@ public class TestDisiPriorityQueue extends LuceneTestCase {
|
|||
public void testRandom() throws Exception {
|
||||
Random r = random();
|
||||
|
||||
int size = r.nextInt(TEST_NIGHTLY ? 1000 : 10);
|
||||
int size = r.nextInt(1, TEST_NIGHTLY ? 1000 : 10);
|
||||
DisiWrapper[] all = new DisiWrapper[size];
|
||||
for (int i = 0; i < size; i++) {
|
||||
DocIdSetIterator it = randomDisi(r);
|
||||
|
|
Loading…
Reference in New Issue