Skip to content

Commit

Permalink
HUC test fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewc committed Apr 19, 2024
1 parent d2e9d46 commit c246492
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ final class HUC_TokenizationViewModelTests: XCTestCase {
self.isImplementingPaymentMethodWithRequiredAction = false
self.abortPayment = false
self.eventsCalled = []
self.onUpdateClientSession = nil
self.onCreatePaymentWithData = nil
}

// MARK: - HEADLESS UNIVERSAL CHECKOUT
Expand Down Expand Up @@ -376,7 +378,7 @@ final class HUC_TokenizationViewModelTests: XCTestCase {
}

} else {
XCTAssert(false, "SDK should have returned an error or resume token.")
XCTFail("SDK should have returned an error or resume token.")
}

expectation.fulfill()
Expand Down Expand Up @@ -407,9 +409,7 @@ final class HUC_TokenizationViewModelTests: XCTestCase {
}

if self.abortPayment {


print(self.eventsCalled)
print(self.eventsCalled)

onUpdateClientSession = { _ in
guard self.eventsCalled.count == 6 else { return }
Expand Down Expand Up @@ -466,7 +466,7 @@ final class HUC_TokenizationViewModelTests: XCTestCase {
}
}

wait(for: [expectation], timeout: 60)
wait(for: [expectation], timeout: 10)

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

test_native_ui_manager_with_auto_payment_handling_and_no_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

test_native_ui_manager_with_auto_payment_handling_and_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

test_native_ui_manager_with_manual_payment_handling_and_no_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Unit Tests

test_native_ui_manager_with_manual_payment_handling_and_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Run unit tests (SPM)

test_native_ui_manager_with_auto_payment_handling_and_no_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Run unit tests (SPM)

test_native_ui_manager_with_auto_payment_handling_and_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Run unit tests (SPM)

test_native_ui_manager_with_manual_payment_handling_and_no_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".

Check failure on line 469 in Debug App/Tests/Unit Tests/Modules/HUC_TokenizationViewModelTests.swift

View workflow job for this annotation

GitHub Actions / Run unit tests (SPM)

test_native_ui_manager_with_manual_payment_handling_and_surcharge, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Successful HUC initialization".
}
}

Expand Down Expand Up @@ -577,5 +577,7 @@ extension HUC_TokenizationViewModelTests: TokenizationTestDelegate {
self.isImplementingPaymentMethodWithRequiredAction = false
self.abortPayment = false
self.eventsCalled = []


}
}

0 comments on commit c246492

Please sign in to comment.