Skip to content

Commit a335620

Browse files
committed
fix failing test
We created a new publisher for .observeCardReaderUpdateState, when dispatched it waits for the completion handler to be called before resuming, but the test wasn’t handling this new one.
1 parent 691eeef commit a335620

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooCommerce/WooCommerceTests/ViewRelated/MainTabBarControllerTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ final class MainTabBarControllerTests: XCTestCase {
495495
if case let .publishCardReaderConnections(completion) = action {
496496
completion(Just<[CardReader]>([]).eraseToAnyPublisher())
497497
}
498+
if case let .observeCardReaderUpdateState(completion) = action {
499+
completion(Just(.none).eraseToAnyPublisher())
500+
}
498501
}
499502

500503
guard let tabBarController = UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController(creator: { coder in

0 commit comments

Comments
 (0)