File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
client/src/test/java/org/asynchttpclient/channel Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public void testMaxTotalConnectionsException() throws Throwable {
8989 }
9090 }
9191
92- @ Test (groups = "standalone" , invocationCount = 10 )
92+ @ Test (groups = "standalone" , invocationCount = 100 )
9393 public void asyncDoGetKeepAliveHandlerTest_channelClosedDoesNotFail () throws Exception {
9494
9595 try (AsyncHttpClient client = asyncHttpClient ()) {
@@ -111,6 +111,15 @@ public Response onCompleted(Response response) throws Exception {
111111 }
112112 return response ;
113113 }
114+
115+ @ Override
116+ public void onThrowable (Throwable t ) {
117+ try {
118+ super .onThrowable (t );
119+ } finally {
120+ l .countDown ();
121+ }
122+ }
114123 };
115124
116125 client .prepareGet (getTargetUrl ()).execute (handler ).get ();
You can’t perform that action at this time.
0 commit comments