Skip to content

Commit ae8d2cd

Browse files
committed
Increase test timeout
1 parent 900bd6a commit ae8d2cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libs/SalesforceSDKCore/SalesforceSDKCoreTests/SFNetworkTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ - (void)testMetricsAction {
136136
[metricsExpectation fulfill];
137137
};
138138

139-
[self waitForExpectations:@[getExpectation, metricsExpectation] timeout:20];
139+
[self waitForExpectations:@[getExpectation, metricsExpectation] timeout:30];
140140
}
141141

142142
@end

libs/SalesforceSDKCore/SalesforceSDKCoreTests/SalesforceRestAPITests.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,10 +2907,10 @@ - (void)testPublicApiCalls {
29072907
response = resp;
29082908
[getExpectation fulfill];
29092909
}];
2910-
[self waitForExpectations:@[getExpectation] timeout:20];
2911-
XCTAssertTrue(error == nil,@"RestApi call to a public api should not fail");
2912-
XCTAssertFalse(response == nil,@"RestApi call to a public api should not have a nil response");
2913-
XCTAssertTrue(response.count > 0 ,@"The response should have github/forcedotcom repos");
2910+
[self waitForExpectations:@[getExpectation] timeout:30];
2911+
XCTAssertTrue(error == nil, @"RestApi call to a public api should not fail. Error: %@", [error localizedDescription]);
2912+
XCTAssertFalse(response == nil, @"RestApi call to a public api should not have a nil response");
2913+
XCTAssertTrue(response.count > 0, @"The response should have github/forcedotcom repos");
29142914
}
29152915

29162916
- (void)testCustomSalesforceEndpoint {

0 commit comments

Comments
 (0)