(ms: number)
| 69 | |
| 70 | export async function waitForPort(port: number, name: string, maxWaitMs: number): Promise<void> { |
| 71 | const start = Date.now(); |
| 72 | while (Date.now() - start < maxWaitMs) { |
| 73 | if (await probePort(port)) return; |
| 74 | await sleep(500); |
| 75 | } |
| 76 | console.warn(`⚠ ${name} on port ${port} did not become ready within ${maxWaitMs / 1000}s`); |
no outgoing calls
no test coverage detected