Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2517,8 +2517,10 @@ - (void)testInvalidAccessTokenWithInvalidRequest {
- (void)testFailedRequestRemovedFromQueue {

// Send a request that should fail before getting to the service.
// Use localhost with an unlikely port to get an immediate connection-refused error
// (non-existent DNS domains can hang for tens of seconds depending on the network).
NSURL *origInstanceUrl = _currentUser.credentials.instanceUrl;
_currentUser.credentials.instanceUrl = [NSURL URLWithString:@"https://some.non-existent-domain-blafhsdfh"];
_currentUser.credentials.instanceUrl = [NSURL URLWithString:@"https://localhost:2"];
self.currentExpectation = [self expectationWithDescription:@"performRequestToFail"];
SFRestRequestFailBlock failWithExpectedFail = ^(id response, NSError *e, NSURLResponse *rawResponse) {
[self.currentExpectation fulfill];
Expand Down
Loading