Skip to content

Commit

Permalink
Fix redirect test: use httpbingo service instead due to postmanlabs/h…
Browse files Browse the repository at this point in the history
  • Loading branch information
ElfSundae authored Dec 20, 2020
1 parent 1b2dd90 commit c19918c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Tests/AFHTTPSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ - (void)testThatRedirectBlockIsCalledWhen302IsEncountered {

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;
Expand Down

0 comments on commit c19918c

Please sign in to comment.