test: Always issue a refresh after we have indexed, otherwise subsequent searches may return different results.

This commit is contained in:
Martijn van Groningen 2017-06-01 10:20:44 +02:00
parent 0424099674
commit c9aeb34d50
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ public class FullClusterRestartIT extends ESRestTestCase {
// TODO a binary field
.endObject();
});
logger.info("Refreshing [{}]", index);
client().performRequest("POST", "/" + index + "/_refresh");
}
assertBasicSearchWorks(index);
}