Test: don't use 0 size for terms aggregation

It is no longer allowed.
This commit is contained in:
Nik Everett 2016-06-14 17:27:45 -04:00
parent c8931768ba
commit f7f377791f
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class BooleanTermsIT extends ESIntegTestCase {
SearchResponse response = client().prepareSearch("idx_unmapped").setTypes("type")
.addAggregation(terms("terms")
.field(SINGLE_VALUED_FIELD_NAME)
.size(randomInt(5))
.size(between(1, 5))
.collectMode(randomFrom(SubAggCollectionMode.values())))
.execute().actionGet();