fixed compile error
This commit is contained in:
parent
846b833539
commit
be2acaa629
|
@ -52,7 +52,6 @@ import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilde
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.*;
|
||||||
import static org.elasticsearch.percolator.PercolatorTests.convertFromTextArray;
|
import static org.elasticsearch.percolator.PercolatorTests.convertFromTextArray;
|
||||||
import static org.elasticsearch.percolator.TTLPercolatorTests.ensureGreen;
|
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticSearchAssertions.assertNoFailures;
|
import static org.elasticsearch.test.hamcrest.ElasticSearchAssertions.assertNoFailures;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.*;
|
||||||
|
|
||||||
|
@ -460,4 +459,11 @@ public class RecoveryPercolatorTests extends AbstractNodesTests {
|
||||||
assertThat(error.get(), nullValue());
|
assertThat(error.get(), nullValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void ensureGreen(Client client) {
|
||||||
|
ClusterHealthResponse actionGet = client.admin().cluster()
|
||||||
|
.health(Requests.clusterHealthRequest().waitForGreenStatus().waitForEvents(Priority.LANGUID).waitForRelocatingShards(0)).actionGet();
|
||||||
|
assertThat(actionGet.isTimedOut(), equalTo(false));
|
||||||
|
assertThat(actionGet.getStatus(), equalTo(ClusterHealthStatus.GREEN));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue