
























@@ -85,7 +85,8 @@ describe("buildCliRespawnPlan", () => {
8585autoNodeExtraCaCerts: "/etc/ssl/certs/ca-certificates.crt",
8686});
878788-expect(plan?.env.NODE_EXTRA_CA_CERTS).toBe("/custom/ca.pem");
88+const respawnPlan = expectCliRespawnPlan(plan);
89+expect(respawnPlan.env.NODE_EXTRA_CA_CERTS).toBe("/custom/ca.pem");
8990});
90919192it("returns null when both respawn guards are already satisfied", () => {
@@ -128,8 +129,13 @@ describe("buildCliRespawnPlan", () => {
128129platform: "linux",
129130});
130131131-expect(plan?.command).toBe("node");
132-expect(plan?.argv).toEqual([EXPERIMENTAL_WARNING_FLAG, "/usr/local/bin/openclaw", "status"]);
132+const respawnPlan = expectCliRespawnPlan(plan);
133+expect(respawnPlan.command).toBe("node");
134+expect(respawnPlan.argv).toEqual([
135+EXPERIMENTAL_WARNING_FLAG,
136+"/usr/local/bin/openclaw",
137+"status",
138+]);
133139});
134140});
135141此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。