Remove unused assertions enabled method
This commit removes an unused assertions enabled method in ESTestCase. For future uses of such a method, use the field ENABLED in org.elasticsearch.Assertions.
This commit is contained in:
parent
c179c6a4c9
commit
a85c1bcede
|
@ -997,15 +997,6 @@ public abstract class ESTestCase extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns true iff assertions for elasticsearch packages are enabled
|
|
||||||
*/
|
|
||||||
public static boolean assertionsEnabled() {
|
|
||||||
boolean enabled = false;
|
|
||||||
assert (enabled = true);
|
|
||||||
return enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void assertAllIndicesRemovedAndDeletionCompleted(Iterable<IndicesService> indicesServices) throws Exception {
|
public void assertAllIndicesRemovedAndDeletionCompleted(Iterable<IndicesService> indicesServices) throws Exception {
|
||||||
for (IndicesService indicesService : indicesServices) {
|
for (IndicesService indicesService : indicesServices) {
|
||||||
assertBusy(() -> assertFalse(indicesService.iterator().hasNext()), 1, TimeUnit.MINUTES);
|
assertBusy(() -> assertFalse(indicesService.iterator().hasNext()), 1, TimeUnit.MINUTES);
|
||||||
|
|
Loading…
Reference in New Issue