diff --git a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java index 28fbbd35fa5..80eddf841a3 100644 --- a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java +++ b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java @@ -749,10 +749,6 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase * layout. */ public void indexRandom(boolean forceRefresh, List builders) throws InterruptedException, ExecutionException { - if (builders.size() == 0) { - return; - } - Random random = getRandom(); Set indicesSet = new HashSet<>(); for (IndexRequestBuilder builder : builders) {