We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f212a commit ab49a8cCopy full SHA for ab49a8c
src/test/java/org/elasticsearch/test/integration/update/UpdateTests.java
@@ -249,6 +249,9 @@ public void testUpdate() throws Exception {
249
.endObject())
250
.setRefresh(true)
251
.execute().actionGet();
252
+ clusterHealth = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
253
+ assertThat(clusterHealth.timedOut(), equalTo(false));
254
+ assertThat(clusterHealth.status(), equalTo(ClusterHealthStatus.GREEN));
255
updateResponse = client.prepareUpdate("test", "type1", "1").setScript("ctx._source.field += 1").setPercolate("*").execute().actionGet();
256
assertThat(updateResponse.matches().size(), equalTo(1));
257
0 commit comments