Use random number of iteration for tests

Thanks @simonw for the review.
Related to #4361 and #4371.
This commit is contained in:
David Pilato 2013-12-09 09:01:04 +01:00
parent a2853f3855
commit 9d8361a542
1 changed files with 2 additions and 1 deletions

View File

@ -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()