Skip to content

Commit

Permalink
Use older Task API
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jul 3, 2024
1 parent fa6d331 commit 7c0532b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/OAuthenticatorTests/AuthenticatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ final class AuthenticatorTests: XCTestCase {
XCTAssertTrue(savedLogins.isEmpty, "Login storage should not be updated after first request")

// Let the token expire
try await Task.sleep(for: .seconds(1))
try await Task.sleep(nanoseconds: 1 * NSEC_PER_SEC)

let (_, _) = try await auth.response(for: URLRequest(url: URL(string: "https://example.com")!))
let sentRequestsTwo = await requestContainer.sentRequests
Expand Down

0 comments on commit 7c0532b

Please sign in to comment.