Skip to content

Commit 98b66cb

Browse files
author
Stephane Landelle
committed
Fix RemoteSiteTest.testGoogleComWithTimeout, redirect depends on geoloc
1 parent 2a57096 commit 98b66cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void testGoogleComWithTimeout() throws Exception {
119119
try {
120120
Response response = c.prepareGet("http://google.com/").execute().get(10, TimeUnit.SECONDS);
121121
assertNotNull(response);
122-
assertEquals(response.getStatusCode(), 302);
122+
assertTrue(response.getStatusCode() == 301 || response.getStatusCode() == 302);
123123
} finally {
124124
c.close();
125125
}

0 commit comments

Comments
 (0)