Skip to content

Commit 3e59a96

Browse files
authored
fix(core): wait on API using tcp (#281)
Wait on the API to come up by just connecting over TCP rather than making HTTP requests. Closes Waiting for API to be ready fails intermittently #275
1 parent eda8e41 commit 3e59a96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/utils/net.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function validateDevServerConfig(context: string, timeout: number)
5555
try {
5656
spinner.start(`Waiting for ${chalk.green(context)} to be ready`);
5757
await waitOn({
58-
resources: [address(hostname, port)],
58+
resources: [`tcp:${hostname}:${port}`],
5959
delay: 1000, // initial delay in ms, default 0
6060
interval: 100, // poll interval in ms, default 250ms
6161
simultaneous: 1, // limit to 1 connection per resource at a time

0 commit comments

Comments
 (0)