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 #4361 and #4371.
  • Loading branch information
dadoonet committed Dec 9, 2013
1 parent 6bc444c commit acdfaf4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -216,8 +216,8 @@ public void testMatchedWithShould() throws Exception {
client().prepareIndex("test", "type1", "2").setSource("content", "consectetur adipisicing elit").get();
refresh();

// Execute search 5 times to load it in cache
for (int i = 0; i < 5; i++) {
// Execute search at least two times to load it in cache
for (int i = 0; i < atLeast(2); i++) {
SearchResponse searchResponse = client().prepareSearch()
.setQuery(
boolQuery()
Expand Down

0 comments on commit acdfaf4

Please sign in to comment.