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 {
89
89
}
90
90
}
91
91
92
- @ Test (groups = "standalone" , invocationCount = 10 )
92
+ @ Test (groups = "standalone" , invocationCount = 100 )
93
93
public void asyncDoGetKeepAliveHandlerTest_channelClosedDoesNotFail () throws Exception {
94
94
95
95
try (AsyncHttpClient client = asyncHttpClient ()) {
@@ -111,6 +111,15 @@ public Response onCompleted(Response response) throws Exception {
111
111
}
112
112
return response ;
113
113
}
114
+
115
+ @ Override
116
+ public void onThrowable (Throwable t ) {
117
+ try {
118
+ super .onThrowable (t );
119
+ } finally {
120
+ l .countDown ();
121
+ }
122
+ }
114
123
};
115
124
116
125
client .prepareGet (getTargetUrl ()).execute (handler ).get ();
You can’t perform that action at this time.
0 commit comments