LUCENE-8757: Fix test bug.

This commit is contained in:
Adrien Grand 2019-05-22 09:10:52 +02:00
parent 87e936f1bb
commit 97046c7054
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ public class TestSegmentToThreadMapping extends LuceneTestCase {
List<LeafReaderContext> leafReaderContexts = new ArrayList<>();
int max = 500_000;
int min = 10_000;
int numSegments = random().nextInt(50);
int numSegments = 1 + random().nextInt(50);
for (int i = 0; i < numSegments; i++) {
leafReaderContexts.add(new LeafReaderContext(dummyIndexReader(random().nextInt((max - min) + 1) + min)));