File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/java/com/ning/http/client/async Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import static org .testng .Assert .assertEquals ;
19
19
import static org .testng .Assert .assertNotNull ;
20
- import static org .testng .AssertJUnit .assertTrue ;
20
+ import static org .testng .Assert .assertTrue ;
21
21
22
22
import java .io .InputStream ;
23
23
import java .net .URLEncoder ;
@@ -116,7 +116,8 @@ public void testGoogleComWithTimeout() throws Throwable {
116
116
try {
117
117
Response response = client .prepareGet ("http://google.com/" ).execute ().get (10 , TimeUnit .SECONDS );
118
118
assertNotNull (response );
119
- assertEquals (response .getStatusCode (), 302 );
119
+ // depends on user IP/Locale
120
+ assertTrue (response .getStatusCode () == 301 || response .getStatusCode () == 302 );
120
121
} finally {
121
122
client .close ();
122
123
}
You can’t perform that action at this time.
0 commit comments