diff --git a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java index 23d177cfbd3..c75b5b706fe 100644 --- a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java +++ b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java @@ -199,7 +199,7 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase } currentCluster.beforeTest(getRandom(), getPerTestTransportClientRatio()); cluster().wipe(); - randomIndexTemplate(); + cluster().randomIndexTemplate(); logger.info("[{}#{}]: before test", getTestClass().getSimpleName(), getTestName()); } catch (OutOfMemoryError e) { if (e.getMessage().contains("unable to create new native thread")) { @@ -278,14 +278,6 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase return client; } - /** - * Creates a randomized index template. This template is used to pass in randomized settings on a - * per index basis. - */ - private static void randomIndexTemplate() { - cluster().randomIndexTemplate(); - } - public static Iterable clients() { return cluster(); }