[TEST] remove unused ElasticsearchIntegrationTest#afterTestFailed method
This commit is contained in:
parent
0dad33f17f
commit
91afe64df7
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue