Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit a149b56

Browse files
committed
test(routes/login): add temporary timeout to workaround failing on CI
1 parent 5462bde commit a149b56

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/routes/login.spec.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ describe("Login Route test", () => {
6363
// ignore the seconds in the comparison, just to avoid flakiness in tests,
6464
// if for some reason execution is slow between calculation of expected and actual
6565
expect(actualExpiresDate.slice(0,23)).toBe(expectedExpiresDate.slice(0,23))
66-
});
66+
67+
}, 10_000);
68+
// use 10 sec (10_000 ms) timeout for now, instead of default 5 sec to work around
69+
// failing CI, because for some reason it currently takes approx. 6 secs to run
70+
// TODO: actually identify what is causing this and fix the flakiness
6771

6872

6973
it("does not set Expires, when 'Remember Me' is not ticked", async () => {
@@ -80,7 +84,10 @@ describe("Login Route test", () => {
8084
const expiresCookieMatch = setCookieHeader.match(expiresCookieRegExp);
8185
expect(expiresCookieMatch).toBeNull();
8286

83-
});
87+
}, 10_000);
88+
// use 10 sec (10_000 ms) timeout for now, instead of default 5 sec to work around
89+
// failing CI, because for some reason it currently takes approx. 6 secs to run
90+
// TODO: actually identify what is causing this and fix the flakiness
8491

8592

8693
});

0 commit comments

Comments
 (0)