Skip to content

Commit 1ead2a8

Browse files
committed
Increase timeout
1 parent 07d59d1 commit 1ead2a8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/tasks/dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ export const dev: Task = {
3636
waitOn({
3737
resources: [`http://localhost:${port}/iframe.html`],
3838
interval: 16,
39-
timeout: 10000,
39+
timeout: 200000,
4040
}).then(() => {
4141
return now() - start;
4242
}),
4343
waitOn({
4444
resources: [`http://localhost:${port}/index.html`],
4545
interval: 16,
46-
timeout: 10000,
46+
timeout: 200000,
4747
}).then(() => {
4848
return now() - start;
4949
}),

scripts/tasks/serve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const serve: Task = {
2323
const controller = new AbortController();
2424
if ((await detectFreePort(port)) === port) {
2525
exec(
26-
`yarn http-server ${builtSandboxDir} --port ${port}`,
26+
`yarn http-server ${builtSandboxDir} --port ${port} -s`,
2727
{ cwd: ROOT_DIRECTORY },
2828
{ dryRun, debug, signal: controller.signal as AbortSignal }
2929
).catch((err) => {
@@ -32,7 +32,7 @@ export const serve: Task = {
3232
throw err;
3333
}
3434
});
35-
await waitOn({ resources: [`tcp:127.0.0.1:${port}`], interval: 16, timeout: 10000 });
35+
await waitOn({ resources: [`tcp:127.0.0.1:${port}`], interval: 16, timeout: 200000 });
3636
}
3737

3838
return controller;

scripts/tasks/test-runner-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const testRunnerBuild: Task & { port: number } = {
2525
'--index-json',
2626
];
2727

28-
await waitOn({ resources: [`http://localhost:${port}`], interval: 16, timeout: 10000 });
28+
await waitOn({ resources: [`http://localhost:${port}`], interval: 16, timeout: 200000 });
2929

3030
await exec(
3131
`yarn test-storybook ${flags.join(' ')}`,

0 commit comments

Comments
 (0)