Skip to content

Commit e2401e8

Browse files
author
Stephane Landelle
committed
Don't forget to shutdown server2
1 parent 6993a49 commit e2401e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api/src/test/java/org/asynchttpclient/async/ProxyTunnellingTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.eclipse.jetty.server.handler.ProxyHandler;
2626
import org.eclipse.jetty.server.nio.SelectChannelConnector;
2727
import org.eclipse.jetty.server.ssl.SslSocketConnector;
28+
import org.testng.annotations.AfterClass;
2829
import org.testng.annotations.BeforeClass;
2930
import org.testng.annotations.Test;
3031

@@ -87,6 +88,12 @@ public void setUpGlobal() throws Exception {
8788
server2.start();
8889
log.info("Local HTTP server started successfully");
8990
}
91+
92+
@AfterClass(alwaysRun = true)
93+
public void tearDownGlobal() throws Exception {
94+
super.tearDownGlobal();
95+
server2.stop();
96+
}
9097

9198
@Test(groups = { "online", "default_provider" })
9299
public void testRequestProxy() throws IOException, InterruptedException, ExecutionException, TimeoutException {

0 commit comments

Comments
 (0)