[TEST] Make sure all shards are allocated before the delete type is being executed.

This commit is contained in:
Martijn van Groningen 2014-05-12 11:59:00 +02:00
parent ebfab19400
commit d4d6c3459e
1 changed files with 2 additions and 0 deletions

View File

@ -1597,6 +1597,8 @@ public class PercolatorTests extends ElasticsearchIntegrationTest {
}
});
ensureGreen("test1", "test2");
assertAcked(client().admin().indices().prepareDeleteMapping("test1").setType(PercolatorService.TYPE_NAME));
response = client().preparePercolate()
.setIndices("test1", "test2").setDocumentType("type").setOnlyCount(true)