mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-19 21:00:40 +08:00
increase session test time
This commit is contained in:
parent
c61a2b958e
commit
ac261d24f0
@ -100,8 +100,8 @@ it("creates sessions that expire", async ({ expect }) => {
|
||||
await Auth.expectToBeSignedIn();
|
||||
} finally {
|
||||
const timeSinceBeginDate = new Date().getTime() - beginDate.getTime();
|
||||
if (timeSinceBeginDate > 4_000) {
|
||||
throw new StackAssertionError(`Timeout error: Requests were too slow (${timeSinceBeginDate}ms > 4000ms); try again or try to understand why they were slow.`);
|
||||
if (timeSinceBeginDate > 6_000) {
|
||||
throw new StackAssertionError(`Timeout error: Requests were too slow (${timeSinceBeginDate}ms > 6000ms); try again or try to understand why they were slow.`);
|
||||
}
|
||||
}
|
||||
await waitPromise;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user