diff --git a/elasticsearch/src/test/java/org/elasticsearch/license/AbstractLicenseServiceTestCase.java b/elasticsearch/src/test/java/org/elasticsearch/license/AbstractLicenseServiceTestCase.java index ba8c9a0b0aa..a57a849c789 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/license/AbstractLicenseServiceTestCase.java +++ b/elasticsearch/src/test/java/org/elasticsearch/license/AbstractLicenseServiceTestCase.java @@ -69,7 +69,8 @@ public abstract class AbstractLicenseServiceTestCase extends ESTestCase { } @After - public void tearDown() { + public void tearDown() throws Exception { + super.tearDown(); licenseService.stop(); } } diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/common/http/HttpClientTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/common/http/HttpClientTests.java index b8f3bb89196..9e9f50804a8 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/common/http/HttpClientTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/common/http/HttpClientTests.java @@ -62,7 +62,7 @@ public class HttpClientTests extends ESTestCase { } @After - public void shutDown() throws Exception { + public void shutdown() throws Exception { webServer.shutdown(); } diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java index b5a01fd6c11..9129d5cb50d 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java @@ -150,6 +150,7 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase { @After public void tearDown() throws Exception { + super.tearDown(); esIn.close(); }