Skip to content

Commit

Permalink
Close exchanges in HttpClientTests (#115059) (#115458)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo authored Oct 24, 2024
1 parent d8459d1 commit 5bdeaa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static void startServer() throws Throwable {
server.createContext("/404/", exchange -> {
try {
exchange.sendResponseHeaders(404, 0);
exchange.close();
} catch (Exception e) {
fail(e);
}
Expand Down Expand Up @@ -102,6 +103,7 @@ public boolean checkCredentials(String username, String password) {
exchange.getResponseHeaders().add("Location", "/" + destination + "/");
}
exchange.sendResponseHeaders(302, 0);
exchange.close();
} catch (Exception e) {
fail(e);
}
Expand Down
2 changes: 0 additions & 2 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ tests:
issue: https://github.com/elastic/elasticsearch/issues/114839
- class: org.elasticsearch.xpack.security.authc.ldap.GroupMappingIT
issue: https://github.com/elastic/elasticsearch/issues/115221
- class: org.elasticsearch.ingest.geoip.HttpClientTests
issue: https://github.com/elastic/elasticsearch/issues/115169
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
method: testProcessFileChanges
issue: https://github.com/elastic/elasticsearch/issues/115280
Expand Down

0 comments on commit 5bdeaa1

Please sign in to comment.