Skip to content

Commit 7c0532b

Browse files
Use older Task API
1 parent fa6d331 commit 7c0532b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/OAuthenticatorTests/AuthenticatorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ final class AuthenticatorTests: XCTestCase {
480480
XCTAssertTrue(savedLogins.isEmpty, "Login storage should not be updated after first request")
481481

482482
// Let the token expire
483-
try await Task.sleep(for: .seconds(1))
483+
try await Task.sleep(nanoseconds: 1 * NSEC_PER_SEC)
484484

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

0 commit comments

Comments
 (0)