Skip to content

Commit c6ee155

Browse files
author
Rishabh
committed
makes test more reliable
1 parent 949f2f9 commit c6ee155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/session/with-jwt/withjwt.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ describe(`session-with-jwt: ${printPath("[test/session/with-jwt/withjwt.test.js]
413413
assert.strictEqual(accessTokenPayload.sub, undefined);
414414
assert.strictEqual(accessTokenPayload.iss, undefined);
415415
assert.strictEqual(accessTokenPayload._jwtPName, "jwt");
416-
assert.equal(jwtExpiryInSeconds, newJwtExpiryInSeconds);
416+
assert(jwtExpiryInSeconds + 100 >= newJwtExpiryInSeconds && jwtExpiryInSeconds - 100 <= newJwtExpiryInSeconds);
417417
});
418418

419419
it("Test that for sessions created without jwt enabled, calling updateAccessTokenPayload after enabling jwt does not create a jwt", async function () {

0 commit comments

Comments
 (0)