Fixed sporadic errors in SearchAfterIT: ack the create and index method calls in the search_after integ test

This commit is contained in:
Jim Ferenczi 2016-01-27 13:13:25 +01:00
parent 651b9bff7d
commit 3bdb54e529
1 changed files with 2 additions and 3 deletions

View File

@ -51,9 +51,8 @@ public class SearchAfterIT extends ESIntegTestCase {
private static final int NUM_DOCS = 100;
public void testsShouldFail() throws Exception {
client().admin().indices().prepareCreate("test").execute().actionGet();
client().prepareIndex("test", "type1", "0").setSource("field1", 0, "field2", "toto").execute().actionGet();
refresh();
createIndex("test");
indexRandom(true, client().prepareIndex("test", "type1", "0").setSource("field1", 0, "field2", "toto"));
try {
client().prepareSearch("test")