Fix num docs to be positive in bucket deferring collector test

This commit is contained in:
Ryan Ernst 2017-03-15 15:43:07 -07:00
parent d808e751f4
commit cb16ed1e26
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class BestBucketsDeferringCollectorTests extends AggregatorTestCase {
public void testReplay() throws Exception {
Directory directory = newDirectory();
RandomIndexWriter indexWriter = new RandomIndexWriter(random(), directory);
int numDocs = randomInt(128);
int numDocs = randomIntBetween(1, 128);
int maxNumValues = randomInt(16);
for (int i = 0; i < numDocs; i++) {
Document document = new Document();