Skip to content

Commit 12bbf13

Browse files
committed
fix: bigger padding around intervals for testing
1 parent e65a579 commit 12bbf13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/supertokens/test/session/RefreshTokenTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public void createRefreshTokenAndLoadAfterProcessRestart()
134134
assertEquals("antiCsrfToken", infoFromToken.antiCsrfToken);
135135
assertNull(infoFromToken.parentRefreshTokenHash2);
136136
assertSame(infoFromToken.type, TYPE.FREE_OPTIMISED);
137-
// -5000 for some grace period for creation and checking above
137+
// -10000 for some grace period for creation and checking above
138138
assertTrue(tokenInfo.expiry > System.currentTimeMillis()
139-
+ Config.getConfig(process.getProcess()).getRefreshTokenValidityInMillis() - 5000);
139+
+ Config.getConfig(process.getProcess()).getRefreshTokenValidityInMillis() - 10000);
140140

141141
process.kill();
142142
assertNotNull(process.checkOrWaitForEvent(PROCESS_STATE.STOPPED));

0 commit comments

Comments
 (0)