Skip to content

Commit 9becdb8

Browse files
committed
Improve stability of the shardsCleanup test
1 parent 1185d4e commit 9becdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void shardsCleanup() {
108108
startNode("server2");
109109

110110
logger.info("--> running cluster_health");
111-
clusterHealth = client1.admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
111+
clusterHealth = client("server2").admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
112112
logger.info("--> done cluster_health, status " + clusterHealth.status());
113113

114114
logger.info("--> making sure that shard and it's replica are allocated on server1 and server3 but not on server2");

0 commit comments

Comments
 (0)