|
@@ -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<Client> clients() {
|
|
|
return cluster();
|
|
|
}
|