diff --git a/server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterSearchLeakIT.java b/server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterSearchLeakIT.java index d17d64da191b4..89231a8677f45 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterSearchLeakIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/search/ccs/CrossClusterSearchLeakIT.java @@ -104,7 +104,7 @@ public void testSearch() throws Exception { searchRequest.allowPartialSearchResults(false); boolean scroll = randomBoolean(); searchRequest.source(new SearchSourceBuilder().query(new MatchAllQueryBuilder()) - .aggregation(terms("f").field("f").size(docs + between(scroll ? 1 : 0, 10))).size(between(0, 1000))); + .aggregation(terms("f").field("f").size(docs + between(0, 10))).size(between(scroll ? 1 : 0, 1000))); if (scroll) { searchRequest.scroll("30s"); }