Test: don't use 0 size for terms aggregation
It is no longer allowed.
This commit is contained in:
parent
c8931768ba
commit
f7f377791f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue