From 9becdb814a723e0cdc66ea52244035a5017fa1ca Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Tue, 22 Jan 2013 10:20:18 -0500 Subject: [PATCH] Improve stability of the shardsCleanup test --- .../test/integration/indices/store/IndicesStoreTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java b/src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java index c0fc1832795..97213a65644 100644 --- a/src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java +++ b/src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java @@ -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");