Skip to content

Commit c37e6e5

Browse files
committed
TestRedirects: Shut down client when done
This saves about five seconds per test case, which works out to 20 seconds across the entire test suite.
1 parent ee6ebee commit c37e6e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/TestRedirects.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ void testCrossSiteRedirectWithSensitiveHeadersAndLaxRedirectStrategy(final Strin
810810
final RedirectLocations redirects = context.getRedirectLocations();
811811
Assertions.assertNotNull(redirects);
812812
Assertions.assertEquals(1, redirects.size());
813+
client.close();
813814
} finally {
814815
secondServer.shutdown(CloseMode.GRACEFUL);
815816
}

0 commit comments

Comments
 (0)