mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
fix(ci): restore cli runtime mocks and timeout exits
This commit is contained in:
@@ -320,11 +320,17 @@ export async function runCommandWithTimeout(
|
||||
: signal != null
|
||||
? "signal"
|
||||
: "exit";
|
||||
const normalizedCode =
|
||||
termination === "timeout" || termination === "no-output-timeout"
|
||||
? code === 0
|
||||
? 124
|
||||
: code
|
||||
: code;
|
||||
resolve({
|
||||
pid: child.pid ?? undefined,
|
||||
stdout,
|
||||
stderr,
|
||||
code,
|
||||
code: normalizedCode,
|
||||
signal,
|
||||
killed: child.killed,
|
||||
termination,
|
||||
|
||||
Reference in New Issue
Block a user