mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:34:32 +00:00
Daemon tests: guard undefined runtime status
This commit is contained in:
@@ -45,7 +45,7 @@ async function waitForRunningRuntime(params: {
|
|||||||
let lastPid: number | undefined;
|
let lastPid: number | undefined;
|
||||||
while (Date.now() < deadline) {
|
while (Date.now() < deadline) {
|
||||||
const runtime = await readLaunchAgentRuntime(params.env);
|
const runtime = await readLaunchAgentRuntime(params.env);
|
||||||
lastStatus = runtime.status;
|
lastStatus = runtime.status ?? "unknown";
|
||||||
lastPid = runtime.pid;
|
lastPid = runtime.pid;
|
||||||
if (
|
if (
|
||||||
runtime.status === "running" &&
|
runtime.status === "running" &&
|
||||||
|
|||||||
Reference in New Issue
Block a user