From 0bab17ffde970ddb50eb03294947a32788d1118e Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 5 Dec 2014 18:12:00 +0100 Subject: [PATCH] [TEST] wait unitl all machines joined the cluster --- .../java/org/elasticsearch/nodesinfo/SimpleNodesInfoTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/nodesinfo/SimpleNodesInfoTests.java b/src/test/java/org/elasticsearch/nodesinfo/SimpleNodesInfoTests.java index c61a2a3e2da..4882cc8d446 100644 --- a/src/test/java/org/elasticsearch/nodesinfo/SimpleNodesInfoTests.java +++ b/src/test/java/org/elasticsearch/nodesinfo/SimpleNodesInfoTests.java @@ -121,7 +121,7 @@ public class SimpleNodesInfoTests extends ElasticsearchIntegrationTest { // The fourth has one java plugin and one site plugin String server4NodeId = startNodeWithPlugins(4,TestNoVersionPlugin.class.getName()); - ClusterHealthResponse clusterHealth = client().admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet(); + ClusterHealthResponse clusterHealth = client().admin().cluster().health(clusterHealthRequest().waitForNodes("4")).actionGet(); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); NodesInfoResponse response = client().admin().cluster().prepareNodesInfo().clear().setPlugins(true).execute().actionGet();