[TEST] fix assertion that index was fully deleted
This commit is contained in:
parent
0a8afa2e72
commit
e3e8f10103
|
@ -207,7 +207,7 @@ public class IndicesServiceTests extends ESSingleNodeTestCase {
|
||||||
// shard lock released... we can now delete
|
// shard lock released... we can now delete
|
||||||
indicesService.processPendingDeletes(test.index(), test.getIndexSettings(), new TimeValue(0, TimeUnit.MILLISECONDS));
|
indicesService.processPendingDeletes(test.index(), test.getIndexSettings(), new TimeValue(0, TimeUnit.MILLISECONDS));
|
||||||
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
|
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
|
||||||
assertFalse(indicesService.hasUncompletedPendingDeletes());
|
assertTrue(indicesService.hasUncompletedPendingDeletes()); // "bogus" index has not been removed
|
||||||
}
|
}
|
||||||
assertAcked(client().admin().indices().prepareOpen("test"));
|
assertAcked(client().admin().indices().prepareOpen("test"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue