[TESTS] IndicesQueryCacheTests: Ensure that shards are searchable before starting to query them.

This commit is contained in:
Adrien Grand 2015-01-30 23:22:27 +01:00
parent eabc3cde98
commit b2010f788d
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class IndicesQueryCacheTests extends ElasticsearchIntegrationTest {
indexRandom(true,
client().prepareIndex("index", "type").setSource("f", "2014-03-10T00:00:00.000Z"),
client().prepareIndex("index", "type").setSource("f", "2014-05-13T00:00:00.000Z"));
ensureSearchable("index");
// This is not a random example: serialization with time zones writes shared strings
// which used to not work well with the query cache because of the handles stream output