Skip to content

Commit

Permalink
Faster HUC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewc committed Apr 19, 2024
1 parent 231a991 commit 63f908a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ final class HUC_TokenizationViewModelTests: XCTestCase {

self.resumeCompletion = { resumeToken, err in
if let err = err {
XCTAssert(false, "SDK failed with error \(err.localizedDescription) while it should have succeeded.")
XCTFail("SDK failed with error \(err.localizedDescription) while it should have succeeded.")

} else if let resumeToken = resumeToken {
XCTAssert(resumeToken == "resume_token", "Successfully called the resume handler")
Expand Down Expand Up @@ -404,7 +404,7 @@ final class HUC_TokenizationViewModelTests: XCTestCase {
}

if self.abortPayment {
Timer.scheduledTimer(withTimeInterval: 8, repeats: false) { _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
print(self.eventsCalled)

if isSurchargeIncluded {
Expand Down

0 comments on commit 63f908a

Please sign in to comment.