From 356329df00e66f2f5bc2c973803c394a68a50703 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Wed, 3 Apr 2013 12:07:42 -0400 Subject: [PATCH] Improve stability of ClusterHealthTests --- .../test/integration/cluster/ClusterHealthTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/integration/cluster/ClusterHealthTests.java b/src/test/java/org/elasticsearch/test/integration/cluster/ClusterHealthTests.java index 6a095c7ae94..d7e3a741d58 100644 --- a/src/test/java/org/elasticsearch/test/integration/cluster/ClusterHealthTests.java +++ b/src/test/java/org/elasticsearch/test/integration/cluster/ClusterHealthTests.java @@ -47,7 +47,7 @@ public class ClusterHealthTests extends AbstractNodesTests { assertThat(healthResponse.getIndices().isEmpty(), equalTo(true)); logger.info("--> running cluster wide health"); - healthResponse = node1.client().admin().cluster().prepareHealth().setWaitForYellowStatus().setTimeout("1s").execute().actionGet(); + healthResponse = node1.client().admin().cluster().prepareHealth().setWaitForYellowStatus().setTimeout("10s").execute().actionGet(); assertThat(healthResponse.isTimedOut(), equalTo(false)); assertThat(healthResponse.getStatus(), equalTo(ClusterHealthStatus.GREEN)); assertThat(healthResponse.getIndices().isEmpty(), equalTo(true)); @@ -58,7 +58,7 @@ public class ClusterHealthTests extends AbstractNodesTests { .execute().actionGet(); logger.info("--> running cluster health on an index that does exists"); - healthResponse = node1.client().admin().cluster().prepareHealth("test1").setWaitForYellowStatus().setTimeout("1s").execute().actionGet(); + healthResponse = node1.client().admin().cluster().prepareHealth("test1").setWaitForYellowStatus().setTimeout("10s").execute().actionGet(); assertThat(healthResponse.isTimedOut(), equalTo(false)); assertThat(healthResponse.getStatus(), equalTo(ClusterHealthStatus.GREEN)); assertThat(healthResponse.getIndices().get("test1").getStatus(), equalTo(ClusterHealthStatus.GREEN));