Skip to content

Commit

Permalink
Increase timeout for app readiness
Browse files Browse the repository at this point in the history
Previously hardcoded to 10 seconds, now hardcoded to 60 seconds.

“Fixes” #62
  • Loading branch information
jcheng5 committed Jun 28, 2024
1 parent 80560bf commit 15ddffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function openBrowserWhenReady(
...additionalPorts: number[]
): Promise<void> {
const portsOpen = [port, ...additionalPorts].map((p) =>
retryUntilTimeout(10000, () => isPortOpen("127.0.0.1", p))
retryUntilTimeout(60000, () => isPortOpen("127.0.0.1", p))
);
const portsOpenResult = await Promise.all(portsOpen);
if (portsOpenResult.filter((p) => !p).length > 0) {
Expand Down

0 comments on commit 15ddffc

Please sign in to comment.