Skip to content

Commit e1e9b23

Browse files
committed
Cleanup static instance in @afterclass
1 parent b9f4b32 commit e1e9b23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

x-pack/plugin/sql/jdbc/src/test/java/org/elasticsearch/xpack/sql/jdbc/JdbcHttpClientRequestTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public static void init() throws Exception {
5454
@AfterClass
5555
public static void cleanup() {
5656
webServer.close();
57+
webServer = null;
5758
}
5859

5960
public void testBinaryRequestEnabled() throws Exception {

x-pack/plugin/sql/sql-client/src/test/java/org/elasticsearch/xpack/sql/client/HttpClientRequestTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public static void init() throws Exception {
6060
@AfterClass
6161
public static void cleanup() {
6262
webServer.close();
63+
webServer = null;
6364
}
6465

6566
public void testBinaryRequestForCLIEnabled() throws URISyntaxException {

0 commit comments

Comments
 (0)