Cleanup static instance in @AfterClass
This commit is contained in:
parent
b9f4b32892
commit
e1e9b23db8
|
@ -54,6 +54,7 @@ public class JdbcHttpClientRequestTests extends ESTestCase {
|
||||||
@AfterClass
|
@AfterClass
|
||||||
public static void cleanup() {
|
public static void cleanup() {
|
||||||
webServer.close();
|
webServer.close();
|
||||||
|
webServer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testBinaryRequestEnabled() throws Exception {
|
public void testBinaryRequestEnabled() throws Exception {
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class HttpClientRequestTests extends ESTestCase {
|
||||||
@AfterClass
|
@AfterClass
|
||||||
public static void cleanup() {
|
public static void cleanup() {
|
||||||
webServer.close();
|
webServer.close();
|
||||||
|
webServer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testBinaryRequestForCLIEnabled() throws URISyntaxException {
|
public void testBinaryRequestForCLIEnabled() throws URISyntaxException {
|
||||||
|
|
Loading…
Reference in New Issue