[TEST] wait for yellow else assertSearchResponse will trip
This commit is contained in:
parent
75d2a84772
commit
eb9d39f611
|
@ -415,6 +415,8 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testScriptScoresWithAgg() throws IOException {
|
public void testScriptScoresWithAgg() throws IOException {
|
||||||
|
createIndex(INDEX);
|
||||||
|
ensureYellow();
|
||||||
index(INDEX, TYPE, "1", jsonBuilder().startObject().field("dummy_field", 1).endObject());
|
index(INDEX, TYPE, "1", jsonBuilder().startObject().field("dummy_field", 1).endObject());
|
||||||
refresh();
|
refresh();
|
||||||
SearchResponse response = client().search(
|
SearchResponse response = client().search(
|
||||||
|
|
Loading…
Reference in New Issue