Skip to content

Commit

Permalink
test(nehelper): fix flaky cert refresh test
Browse files Browse the repository at this point in the history
  • Loading branch information
flexjdev committed Feb 5, 2024
1 parent 2bf285c commit fb72441
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 fb72441

Please sign in to comment.