Skip to content

Commit 5bdeaa1

Browse files
authored
Close exchanges in HttpClientTests (#115059) (#115458)
1 parent d8459d1 commit 5bdeaa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/HttpClientTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public static void startServer() throws Throwable {
4747
server.createContext("/404/", exchange -> {
4848
try {
4949
exchange.sendResponseHeaders(404, 0);
50+
exchange.close();
5051
} catch (Exception e) {
5152
fail(e);
5253
}
@@ -102,6 +103,7 @@ public boolean checkCredentials(String username, String password) {
102103
exchange.getResponseHeaders().add("Location", "/" + destination + "/");
103104
}
104105
exchange.sendResponseHeaders(302, 0);
106+
exchange.close();
105107
} catch (Exception e) {
106108
fail(e);
107109
}

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,6 @@ tests:
385385
issue: https://github.com/elastic/elasticsearch/issues/114839
386386
- class: org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT
387387
issue: https://github.com/elastic/elasticsearch/issues/115221
388-
- class: org.elasticsearch.ingest.geoip.HttpClientTests
389-
issue: https://github.com/elastic/elasticsearch/issues/115169
390388
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
391389
method: testProcessFileChanges
392390
issue: https://github.com/elastic/elasticsearch/issues/115280

0 commit comments

Comments
 (0)