Skip to content

Commit a83219e

Browse files
committed
Update MockInAppPurchases fetchProductsDuration to nanoseconds instead of seconds.
1 parent 9faa5f0 commit a83219e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WooCommerce/WooCommerceTests/Authentication/Store Creation/StoreCreationCoordinatorTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ final class StoreCreationCoordinatorTests: XCTestCase {
156156
func test_InProgressViewController_is_first_presented_when_fetching_iap_products() throws {
157157
// Given
158158
let featureFlagService = MockFeatureFlagService(isStoreCreationM2Enabled: true)
159-
let purchasesManager = MockInAppPurchases(fetchProductsDuration: 10)
159+
// 6 seconds = 6_000_000_000 nanoseconds.
160+
let purchasesManager = MockInAppPurchases(fetchProductsDuration: 6_000_000_000)
160161
let coordinator = StoreCreationCoordinator(source: .storePicker,
161162
navigationController: navigationController,
162163
featureFlagService: featureFlagService,
@@ -167,8 +168,7 @@ final class StoreCreationCoordinatorTests: XCTestCase {
167168

168169
// Then
169170
waitUntil(timeout: 5) {
170-
print("[Debug for flaky test] \(String(describing: self.navigationController.presentedViewController))")
171-
return self.navigationController.presentedViewController is InProgressViewController
171+
self.navigationController.presentedViewController is InProgressViewController
172172
}
173173
}
174174

0 commit comments

Comments
 (0)