Skip to content

Commit b81a754

Browse files
committed
Fix expiry test
1 parent 1dbb383 commit b81a754

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/OAuthenticatorTests/AuthenticatorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ struct AuthenticatorTests {
513513
)
514514

515515
let storedLogin = Login(
516-
accessToken: Token(value: "EXPIRE SOON", expiry: Date().addingTimeInterval(5)),
516+
accessToken: Token(value: "EXPIRE SOON", expiry: Date().addingTimeInterval(15)),
517517
refreshToken: Token(value: "REFRESH")
518518
)
519519

@@ -550,7 +550,7 @@ struct AuthenticatorTests {
550550
#expect(events1 == expected1)
551551

552552
// Let the token expire
553-
try await Task.sleep(for: .seconds(5))
553+
try await Task.sleep(for: .seconds(20))
554554

555555
let (_, _) = try await auth.response(for: URLRequest(url: URL(string: "https://example.com")!))
556556
continuation.checkpoint()

0 commit comments

Comments
 (0)