add a sleep to make sure settings are applied

This commit is contained in:
Shay Banon 2012-12-27 14:16:16 -08:00
parent bab91bb9fd
commit 7fb98769a6
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ public class SimpleThreadPoolTests extends AbstractNodesTests {
.put("threadpool.search.keep_alive", "15s")
.put("threadpool.search.capacity", "100")
.build()).execute().actionGet();
Thread.sleep(200);
nodesInfoResponse = client2.admin().cluster().prepareNodesInfo().all().execute().actionGet();
for (int i = 0; i < 2; i++) {
NodeInfo nodeInfo = nodesInfoResponse.nodes()[i];