Skip to content

Commit f0bd951

Browse files
committed
Fix failed test again
1 parent c46c737 commit f0bd951

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Modules/Sources/NetworkingCore/Network/AlamofireNetwork.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ private extension AlamofireNetwork {
199199
subscription = selectedSite
200200
.removeDuplicates()
201201
.combineLatest(userDefaults.publisher(for: \.applicationPasswordUnsupportedList))
202-
.print("")
203202
.sink { [weak self] site, unsupportedList in
204203
guard let self else { return }
205204
guard let site, site.applicationPasswordAvailable,

WooCommerce/WooCommerceTests/Yosemite/StoresManagerTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,7 @@ final class StoresManagerTests: XCTestCase {
452452
MockNotificationCenter.testingInstance.post(name: .ApplicationPasswordsGenerationFailed, object: error, userInfo: nil)
453453

454454
// Assert
455-
waitUntil {
456-
isLoggedInValues == [false, true, false]
457-
}
458-
XCTAssertFalse(manager.isAuthenticated)
455+
XCTAssertEqual(isLoggedInValues, [false, true, false])
459456
}
460457

461458
/// Verifies that user is logged out when application password regeneration fails if authenticated with wpcom
@@ -475,6 +472,7 @@ final class StoresManagerTests: XCTestCase {
475472

476473
// Assert
477474
XCTAssertTrue(manager.isAuthenticated)
475+
XCTAssertEqual(isLoggedInValues, [false, true])
478476
}
479477

480478
/// Verifies that user is logged out when WPCOM token expires

0 commit comments

Comments
 (0)