Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontedor committed Sep 3, 2017
1 parent 29c6383 commit 3ef260c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testAvoidStackOverflow() throws InterruptedException {
Settings.builder().put("index.routing.allocation.include.color", "blue").put("index.number_of_shards", 640);
client().admin().indices().create(new CreateIndexRequest("index").settings(settings)).actionGet();
// it can take a long time for all the shards to allocate and initialize
ensureGreen(TimeValue.timeValueSeconds(60));
ensureGreen(TimeValue.timeValueSeconds(Long.MAX_VALUE));
// we have to query through the data node so that all requests are local; if this query executes successfully, the test passes
client(node).prepareSearch("index").setQuery(new QueryStringQueryBuilder("")).execute().actionGet();
}
Expand Down

0 comments on commit 3ef260c

Please sign in to comment.