From 60e805cc1f43c2ada0cce43cfd0a7c5f0fea38ab Mon Sep 17 00:00:00 2001 From: Britta Weber Date: Fri, 12 Dec 2014 18:03:32 +0100 Subject: [PATCH] [TEST] use ensureYellow() --- .../org/elasticsearch/percolator/RecoveryPercolatorTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java b/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java index fe01892ddf5..490739c427c 100644 --- a/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java +++ b/src/test/java/org/elasticsearch/percolator/RecoveryPercolatorTests.java @@ -94,9 +94,7 @@ public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest { internalCluster().rollingRestart(); logger.info("Running Cluster Health (wait for the shards to startup)"); - ClusterHealthResponse clusterHealth = client().admin().cluster().health(clusterHealthRequest().waitForYellowStatus().waitForActiveShards(1)).actionGet(); - logger.info("Done Cluster Health, status " + clusterHealth.getStatus()); - assertThat(clusterHealth.isTimedOut(), equalTo(false)); + ensureYellow(); percolate = client().preparePercolate() .setIndices("test").setDocumentType("type1")