Skip to content

Commit

Permalink
Use random number of iteration for tests
Browse files Browse the repository at this point in the history
Thanks @simonw for the review.
Related to elastic#4361 and elastic#4371.
  • Loading branch information
dadoonet committed Dec 9, 2013
1 parent 1baeb54 commit 559e0a0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -217,7 +217,8 @@ public void testMatchedWithShould() throws Exception {
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()
Expand Down

0 comments on commit 559e0a0

Please sign in to comment.