Skip to content

Commit abafe2b

Browse files
Diagorasslandelle
authored andcommitted
Fixing a broken test (AsyncHttpClient#1300)
1 parent 1da0a86 commit abafe2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/test/java/org/asynchttpclient/PerRequestRelative302Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public void runAllSequentiallyBecauseNotThreadSafe() throws Exception {
9191
public void redirected302Test() throws Exception {
9292
isSet.getAndSet(false);
9393
try (AsyncHttpClient c = asyncHttpClient()) {
94-
Response response = c.prepareGet(getTargetUrl()).setFollowRedirect(true).setHeader("X-redirect", "http://www.microsoft.com/").execute().get();
94+
Response response = c.prepareGet(getTargetUrl()).setFollowRedirect(true).setHeader("X-redirect", "https://www.microsoft.com/").execute().get();
9595

9696
assertNotNull(response);
9797
assertEquals(response.getStatusCode(), 200);
9898

99-
String anyMicrosoftPage = "http://www.microsoft.com[^:]*:80";
99+
String anyMicrosoftPage = "https://www.microsoft.com[^:]*:443";
100100
String baseUrl = getBaseUrl(response.getUri());
101101

102102
assertTrue(baseUrl.matches(anyMicrosoftPage), "response does not show redirection to " + anyMicrosoftPage);

0 commit comments

Comments
 (0)