Skip to content

Commit

Permalink
Always close request in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenneaux committed Jan 9, 2024
1 parent bcde29a commit 75e80c4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ void shouldWorkInLoop() throws Exception {
for (int i = 0; i < 100; i++) {
try (
@SuppressWarnings("unused") WeldContainer container = new Weld().initialize();
AutoCloseable ignored = jerseyServer(port, tlsSecurityConfiguration, DummyRestService.class)
AutoCloseable ignored = jerseyServer(port, tlsSecurityConfiguration, DummyRestService.class);
final var head = getClient(port).path(PING).request().head()
) {
assertEquals(204, getClient(port).path(PING).request().head().getStatus());
assertEquals(204, head.getStatus());
}
}
}
Expand Down

0 comments on commit 75e80c4

Please sign in to comment.