Cleanup static instance in @AfterClass

This commit is contained in:
Andrei Stefan 2019-10-31 23:24:40 -04:00
parent b9f4b32892
commit e1e9b23db8
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {