Explorar o código

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

Elf Sundae %!s(int64=4) %!d(string=hai) anos
pai
achega
3afc782703
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;