소스 검색

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

Elf Sundae 4 년 전
부모
커밋
3afc782703
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;