test(cli): allow ACP process startup under load
This commit is contained in:
parent
d032d047c6
commit
7f82a388de
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ function spawnAcp(input: { readonly env: Record<string, string | undefined> }):
|
||||||
inputClosed = true
|
inputClosed = true
|
||||||
await child.stdin.end()
|
await child.stdin.end()
|
||||||
}
|
}
|
||||||
const exitCode = await withTimeout(child.exited, 5_000, "ACP did not exit after stdin EOF")
|
const exitCode = await withTimeout(child.exited, 45_000, "ACP did not exit after stdin EOF")
|
||||||
await Promise.all([output, errors])
|
await Promise.all([output, errors])
|
||||||
if (exitCode !== 0) throw new Error(`ACP exited with ${exitCode}: ${stderr}`)
|
if (exitCode !== 0) throw new Error(`ACP exited with ${exitCode}: ${stderr}`)
|
||||||
return exitCode
|
return exitCode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue