Skip to content

Commit

Permalink
More reliable here
Browse files Browse the repository at this point in the history
  • Loading branch information
piercifani committed Jun 24, 2024
1 parent 3bda45e commit 759f3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/BSWFoundationTests/APIClient/APIClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private func generateRandomData() -> Data {
private class MockAPIClientDelegate: NSObject, APIClientDelegate {
func apiClientDidReceiveUnauthorized(forRequest atPath: String, apiClientID: APIClient.ID) async throws -> Bool {
failedPath = atPath
XCTAssert(Thread.isMainThread)
dispatchPrecondition(condition: .onQueue(.main))
return false
}
var failedPath: String?
Expand Down

0 comments on commit 759f3ea

Please sign in to comment.