Skip to content

Commit

Permalink
Merge branch 'cj/test/fix-flaky-cert-refresh-test' into 'develop'
Browse files Browse the repository at this point in the history
Merge-Request: apple/vpn/protonvpn!1589
Approved-by: Jaroslav Ozevič <[email protected]>
  • Loading branch information
flexjdev committed Feb 5, 2024
2 parents 2bf285c + fb72441 commit 6fdca16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,8 @@ class CertificateRefreshTests: ExtensionAPIServiceTestCase {
XCTFail("Shouldn't have tried to refresh; operation should have been cancelled")
}
expectations.managerStop.fulfill()
self.timerFactory.runAllScheduledWork()
}

timerFactory.runAllScheduledWork()
wait(for: [expectations.certRefreshCancelled, expectations.managerStop], timeout: expectationTimeout, enforceOrder: true)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ExtensionAPIServiceTestCase: XCTestCase, ExtensionAPIServiceDelegate {
serverStatusCallback = failCallback

keychain = MockAuthKeychain()
try! await keychain.store(AuthCredentials(username: "johnny",
try! keychain.store(AuthCredentials(username: "johnny",
accessToken: "12345",
refreshToken: "54321",
sessionId: "15213",
Expand Down

0 comments on commit 6fdca16

Please sign in to comment.