improve load test

This commit is contained in:
kimchy 2010-07-20 20:53:14 +03:00
parent 2eeb4ebd8c
commit f4064038e4
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ public class RecoveryWhileUnderLoadTests extends AbstractNodesTests {
stop.set(true);
stopLatch.await();
assertThat(client("node2").admin().cluster().prepareHealth().setTimeout("1m").setWaitForYellowStatus().execute().actionGet().status(), equalTo(ClusterHealthStatus.YELLOW));
client("node2").admin().indices().prepareRefresh().execute().actionGet();
for (int i = 0; i < 10; i++) {