Improve stability of the shardsCleanup test

This commit is contained in:
Igor Motov 2013-01-22 10:20:18 -05:00
parent 1185d4eb19
commit 9becdb814a
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class IndicesStoreTests extends AbstractNodesTests {
startNode("server2");
logger.info("--> running cluster_health");
clusterHealth = client1.admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
clusterHealth = client("server2").admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
logger.info("--> done cluster_health, status " + clusterHealth.status());
logger.info("--> making sure that shard and it's replica are allocated on server1 and server3 but not on server2");