Improve stability of shardsCleanup test

This commit is contained in:
Igor Motov 2013-02-18 19:35:12 -05:00
parent 183a74c866
commit 5746c50ef9
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class IndicesStoreTests extends AbstractNodesTests {
assertThat(server2Shard.exists(), equalTo(true));
logger.info("--> running cluster_health");
clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus()).actionGet();
clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus().setWaitForNodes("2")).actionGet();
logger.info("--> done cluster_health, status " + clusterHealth.getStatus());
logger.info("--> making sure that shard and it's replica exist on server1, server2 and server3");