Skip to content

Commit

Permalink
Close exchanges in HttpClientTests (elastic#115059)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo authored Oct 18, 2024
1 parent ebd363d commit becd08d
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 @@ -318,8 +318,6 @@ tests:
- class: org.elasticsearch.xpack.inference.rest.ServerSentEventsRestActionListenerTests
method: testNoStream
issue: https://github.com/elastic/elasticsearch/issues/114788
- class: org.elasticsearch.ingest.geoip.HttpClientTests
issue: https://github.com/elastic/elasticsearch/issues/112618
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityWithApmTracingRestIT
method: testTracingCrossCluster
issue: https://github.com/elastic/elasticsearch/issues/112731
Expand Down

0 comments on commit becd08d

Please sign in to comment.