From 7c0532b23123d1e9830906dce9bc66e082962ab4 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:59:24 -0400 Subject: [PATCH] Use older Task API --- Tests/OAuthenticatorTests/AuthenticatorTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/OAuthenticatorTests/AuthenticatorTests.swift b/Tests/OAuthenticatorTests/AuthenticatorTests.swift index 5bacf37..6e2de49 100644 --- a/Tests/OAuthenticatorTests/AuthenticatorTests.swift +++ b/Tests/OAuthenticatorTests/AuthenticatorTests.swift @@ -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