File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
api/src/test/java/org/asynchttpclient/async Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import org .asynchttpclient .AsyncHttpClient ;
16
16
import org .asynchttpclient .AsyncHttpClientConfig ;
17
+ import org .asynchttpclient .util .AsyncHttpProviderUtils ;
17
18
import org .eclipse .jetty .server .Request ;
18
19
import org .eclipse .jetty .server .handler .AbstractHandler ;
19
20
import org .testng .annotations .Test ;
20
21
21
22
import javax .servlet .ServletException ;
22
23
import javax .servlet .http .HttpServletRequest ;
23
24
import javax .servlet .http .HttpServletResponse ;
25
+
24
26
import java .io .IOException ;
25
27
import java .io .OutputStream ;
26
28
@@ -76,7 +78,7 @@ public void testMaxRetry() throws Exception {
76
78
} catch (Exception t ) {
77
79
assertNotNull (t .getCause ());
78
80
assertEquals (t .getCause ().getClass (), IOException .class );
79
- if (! t .getCause (). getMessage (). startsWith ( "Remotely Closed" ) ) {
81
+ if (t .getCause () != AsyncHttpProviderUtils . REMOTELY_CLOSED_EXCEPTION ) {
80
82
fail ();
81
83
}
82
84
} finally {
You can’t perform that action at this time.
0 commit comments