Skip to content

Commit 6550250

Browse files
committed
test: add delay after login in testPush to fix CI
1 parent b00927f commit 6550250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/testPush.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ describe('Push API', () => {
6666
const res = await request(app).post('/api/auth/login').send({ username, password });
6767
expect(res.status).toBe(200);
6868
setCookie(res);
69+
// Small delay to make sure session is set on CI execution
70+
await new Promise((resolve) => setTimeout(resolve, 1000));
6971
};
7072

7173
const loginAsApprover = () => login(TEST_USERNAME_1, TEST_PASSWORD_1);

0 commit comments

Comments
 (0)