Function
createCodexConnectTimeoutError
({
command,
url,
stderrTail,
}: {
command: string;
url: string;
stderrTail: string[];
})
Source from the content-addressed store, hash-verified
| 4529 | } |
| 4530 | |
| 4531 | function createCodexConnectTimeoutError({ |
| 4532 | command, |
| 4533 | url, |
| 4534 | stderrTail, |
| 4535 | }: { |
| 4536 | command: string; |
| 4537 | url: string; |
| 4538 | stderrTail: string[]; |
| 4539 | }): Error { |
| 4540 | const detail = stderrTail.length > 0 |
| 4541 | ? ` Last stderr: ${stderrTail.join(' | ')}` |
| 4542 | : ''; |
| 4543 | return new Error(`Timed out connecting to ${url} after launching "${command}".${detail}`); |
| 4544 | } |
| 4545 | |
| 4546 | async function reservePort(): Promise<number> { |
| 4547 | return new Promise<number>((resolve, reject) => { |
Tested by
no test coverage detected