diff --git a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java index f1f7dd57cec..63be122b390 100644 --- a/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java +++ b/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java @@ -675,13 +675,6 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase } } - /** - * Allows to execute some additional task after a test is failed, right after we cleared the clusters - */ - protected void afterTestFailed() { - - } - public static TestCluster cluster() { return currentCluster; } diff --git a/src/test/java/org/elasticsearch/test/rest/ElasticsearchRestTestCase.java b/src/test/java/org/elasticsearch/test/rest/ElasticsearchRestTestCase.java index e221533e044..3788003eff3 100644 --- a/src/test/java/org/elasticsearch/test/rest/ElasticsearchRestTestCase.java +++ b/src/test/java/org/elasticsearch/test/rest/ElasticsearchRestTestCase.java @@ -284,12 +284,6 @@ public abstract class ElasticsearchRestTestCase extends ElasticsearchIntegration testCandidate.getTestSection().getSkipSection().skip(restTestExecutionContext.esVersion())); } - @Override - protected void afterTestFailed() { - //after we reset the global cluster, we have to make sure the client gets re-initialized too - restTestExecutionContext.resetClient(); - } - private static String buildSkipMessage(String description, SkipSection skipSection) { StringBuilder messageBuilder = new StringBuilder(); if (skipSection.isVersionCheck()) { diff --git a/src/test/java/org/elasticsearch/test/rest/RestTestExecutionContext.java b/src/test/java/org/elasticsearch/test/rest/RestTestExecutionContext.java index e10582d11b4..bf7116e1691 100644 --- a/src/test/java/org/elasticsearch/test/rest/RestTestExecutionContext.java +++ b/src/test/java/org/elasticsearch/test/rest/RestTestExecutionContext.java @@ -125,11 +125,6 @@ public class RestTestExecutionContext implements Closeable { } } - public void resetClient() { - restClient.close(); - restClient = null; - } - /** * Clears the last obtained response and the stashed fields */