Skip to content

Commit b556a29

Browse files
authored
fix(tests): increase hydration delay (#190)
1 parent f653c18 commit b556a29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/e2e-tests/kit-node/__tests__/kit.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('kit-node', () => {
3636
expect(html).toMatch('BEFORE_MOUNT');
3737

3838
// wait a bit for hydration to kick in
39-
await sleep(250);
39+
await sleep(550);
4040

4141
// check hydrated content
4242
expect(await getText('#load')).toBe('CLIENT_LOADED');

packages/e2e-tests/kit-node/src/routes/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
return new Promise((resolve) =>
99
setTimeout(() => {
1010
resolve({ props: { load_status: 'CLIENT_LOADED' } });
11-
}, 200)
11+
}, 500)
1212
);
1313
} else {
1414
return { props: { load_status: 'SERVER_LOADED' } };

0 commit comments

Comments
 (0)