Browse Source

Fix redirect test: use httpbingo service instead due to postmanlabs/httpbin#617 (#4620)

Elf Sundae 4 năm trước cách đây
mục cha
commit
3afc782703
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Tests/Tests/AFHTTPSessionManagerTests.m

+ 1 - 1
Tests/Tests/AFHTTPSessionManagerTests.m

@@ -103,7 +103,7 @@
 
     XCTestExpectation *expectation = [self expectationWithDescription:@"Request should succeed"];
 
-    NSURLRequest *redirectRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/redirect/1" relativeToURL:self.baseURL]];
+    NSURLRequest *redirectRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://httpbingo.org/redirect/1"]];
     NSURLSessionDataTask *redirectTask = [self.sessionManager dataTaskWithRequest:redirectRequest uploadProgress:nil downloadProgress:nil
                                                          completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
         blockError = error;