From 7e22189b9dd0375d27e50b0983c46caa29db7895 Mon Sep 17 00:00:00 2001 From: Peter Elmered Date: Mon, 16 Sep 2024 23:00:17 +0200 Subject: [PATCH] Make test more resiliant --- tests/Unit/RefreshTokenTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/RefreshTokenTest.php b/tests/Unit/RefreshTokenTest.php index 6ad821f..bea6885 100644 --- a/tests/Unit/RefreshTokenTest.php +++ b/tests/Unit/RefreshTokenTest.php @@ -257,7 +257,7 @@ ); expect($accessToken->getAccessToken())->toBe('this_is_my_access_token_from_body_refresh_token') - ->and($accessToken->getExpiresIn())->toBe(3540) + ->and($accessToken->getExpiresIn())->toBeBetween(3535, 3540) ->and($accessToken->getExpiresAt())->toBeInstanceOf(Carbon::class) ->and($accessToken->getCustomCallback())->toBeNull(); });