fix(testing): increase the default timeout to 15s for the dev server to start (#21716)

This commit is contained in:
Leosvel Pérez Espinosa 2024-02-09 15:51:18 +01:00 committed by GitHub
parent d5a4fd886b
commit fdae86c81c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ function waitForServer(
let pollTimeout: NodeJS.Timeout | null; let pollTimeout: NodeJS.Timeout | null;
const { protocol } = new URL(url); const { protocol } = new URL(url);
const timeoutDuration = webServerConfig?.timeout ?? 10 * 1000; const timeoutDuration = webServerConfig?.timeout ?? 15 * 1000;
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
clearTimeout(pollTimeout); clearTimeout(pollTimeout);
reject( reject(