diff --git a/plugins/auth-node/src/oauth/createOAuthRouteHandlers.test.ts b/plugins/auth-node/src/oauth/createOAuthRouteHandlers.test.ts index a943717553..b5b4b7db2c 100644 --- a/plugins/auth-node/src/oauth/createOAuthRouteHandlers.test.ts +++ b/plugins/auth-node/src/oauth/createOAuthRouteHandlers.test.ts @@ -877,10 +877,10 @@ describe('createOAuthRouteHandlers', () => { const expectedExpirationDate = Date.now() + 1000 * 24 * 60 * 60 * 1000; const cookie = getRefreshTokenCookie(agent); expect(cookie.expiration_date).toBeGreaterThanOrEqual( - expectedExpirationDate - 1000, + expectedExpirationDate - 5000, ); expect(cookie.expiration_date).toBeLessThanOrEqual( - expectedExpirationDate + 1000, + expectedExpirationDate + 5000, ); }); });