[Tests] assert indexRandom's deletion of injection dummy docs find them

This commit is contained in:
Boaz Leskes 2014-05-28 22:06:38 +02:00
parent 328a7e513c
commit dc34ccebfe
1 changed files with 1 additions and 1 deletions

View File

@ -1073,7 +1073,7 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
if (!bogusIds.isEmpty()) {
// delete the bogus types again - it might trigger merges or at least holes in the segments and enforces deleted docs!
for (Tuple<String, String> doc : bogusIds) {
client().prepareDelete(doc.v1(), RANDOM_BOGUS_TYPE, doc.v2()).get();
assertTrue("failed to delete a dummy doc", client().prepareDelete(doc.v1(), RANDOM_BOGUS_TYPE, doc.v2()).get().isFound());
}
}
if (forceRefresh) {