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 committed Oct 18, 2024
1 parent 9e7d3a7 commit a62d495
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 @@ -393,8 +393,6 @@ tests:
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
method: test {yaml=reference/esql/esql-across-clusters/line_197}
issue: https://github.com/elastic/elasticsearch/issues/114947
- class: org.elasticsearch.ingest.geoip.HttpClientTests
issue: https://github.com/elastic/elasticsearch/issues/112618
- class: org.elasticsearch.xpack.enrich.EnrichRestIT
method: test {p0=enrich/50_data_stream/enrich documents over _bulk via a data stream}
issue: https://github.com/elastic/elasticsearch/issues/114769
Expand Down

0 comments on commit a62d495

Please sign in to comment.