From f0f62ce00ca04c11f820b92439496d15a7fe019c Mon Sep 17 00:00:00 2001 From: kimchy Date: Sat, 23 Oct 2010 01:24:53 +0200 Subject: [PATCH] improve test to wait for 2 nodes --- .../test/integration/recovery/SimpleRecoveryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/test/integration/src/test/java/org/elasticsearch/test/integration/recovery/SimpleRecoveryTests.java b/modules/test/integration/src/test/java/org/elasticsearch/test/integration/recovery/SimpleRecoveryTests.java index 0eb87054b54..2e5d0bbc163 100644 --- a/modules/test/integration/src/test/java/org/elasticsearch/test/integration/recovery/SimpleRecoveryTests.java +++ b/modules/test/integration/src/test/java/org/elasticsearch/test/integration/recovery/SimpleRecoveryTests.java @@ -66,7 +66,7 @@ public class SimpleRecoveryTests extends AbstractNodesTests { startNode("server2"); logger.info("Running Cluster Health"); - clusterHealth = client("server1").admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet(); + clusterHealth = client("server1").admin().cluster().health(clusterHealthRequest().waitForGreenStatus().waitForNodes("2")).actionGet(); logger.info("Done Cluster Health, status " + clusterHealth.status()); assertThat(clusterHealth.timedOut(), equalTo(false)); assertThat(clusterHealth.status(), equalTo(ClusterHealthStatus.GREEN));