From c78bb4472a572f7853d0b90faa5dad4d20cf5f84 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 3 Apr 2014 15:57:54 +0200 Subject: [PATCH] [TEST] Make sure refresh is called by `indexRandom`, even if the list of documents to index is empty. --- .../org/elasticsearch/test/ElasticsearchIntegrationTest.java | 4 ---- 1 file changed, 4 deletions(-) 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) {