Use random number of iteration for tests
Thanks @simonw for the review. Related to #4361 and #4371.
This commit is contained in:
parent
a2853f3855
commit
9d8361a542
|
@ -217,7 +217,8 @@ public class MatchedQueriesTests extends ElasticsearchIntegrationTest {
|
|||
refresh();
|
||||
|
||||
// Execute search at least two times to load it in cache
|
||||
for (int i = 0; i < atLeast(2); i++) {
|
||||
int iter = atLeast(2);
|
||||
for (int i = 0; i < iter; i++) {
|
||||
SearchResponse searchResponse = client().prepareSearch()
|
||||
.setQuery(
|
||||
boolQuery()
|
||||
|
|
Loading…
Reference in New Issue