[TEST] fix assertion that index was fully deleted

This commit is contained in:
Yannick Welsch 2016-06-06 15:45:57 +02:00
parent 0a8afa2e72
commit e3e8f10103
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ public class IndicesServiceTests extends ESSingleNodeTestCase {
// shard lock released... we can now delete
indicesService.processPendingDeletes(test.index(), test.getIndexSettings(), new TimeValue(0, TimeUnit.MILLISECONDS));
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
assertFalse(indicesService.hasUncompletedPendingDeletes());
assertTrue(indicesService.hasUncompletedPendingDeletes()); // "bogus" index has not been removed
}
assertAcked(client().admin().indices().prepareOpen("test"));