mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:00:43 +00:00
test: tighten acp empty array assertions
This commit is contained in:
@@ -297,7 +297,7 @@ describe("prepareAcpxCodexAuthConfig", () => {
|
||||
},
|
||||
);
|
||||
const launched = JSON.parse(stdout.trim()) as { argv?: unknown; codexHome?: unknown };
|
||||
expect(launched.argv).toEqual([]);
|
||||
expect(launched.argv).toStrictEqual([]);
|
||||
const expectedCodexHome = await fs.realpath(path.join(stateDir, "acpx", "codex-home"));
|
||||
expect(path.resolve(String(launched.codexHome))).toBe(expectedCodexHome);
|
||||
});
|
||||
|
||||
@@ -149,7 +149,7 @@ describe("process reaper", () => {
|
||||
terminatedPids: [],
|
||||
skippedReason: "not-openclaw-owned",
|
||||
});
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("skips recorded pid cleanup when process listing is unavailable", async () => {
|
||||
@@ -174,7 +174,7 @@ describe("process reaper", () => {
|
||||
terminatedPids: [],
|
||||
skippedReason: "unverified-root",
|
||||
});
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("does not kill a reused pid when the live command is not OpenClaw-owned", async () => {
|
||||
@@ -192,7 +192,7 @@ describe("process reaper", () => {
|
||||
terminatedPids: [],
|
||||
skippedReason: "not-openclaw-owned",
|
||||
});
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("does not kill a reused adapter pid when the stored root was a generated wrapper", async () => {
|
||||
@@ -216,7 +216,7 @@ describe("process reaper", () => {
|
||||
terminatedPids: [],
|
||||
skippedReason: "not-openclaw-owned",
|
||||
});
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("skips non-owned recorded process trees", async () => {
|
||||
@@ -230,7 +230,7 @@ describe("process reaper", () => {
|
||||
});
|
||||
|
||||
expect(result.skippedReason).toBe("not-openclaw-owned");
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("reaps stale OpenClaw-owned wrapper and adapter orphans on startup", async () => {
|
||||
|
||||
@@ -976,7 +976,7 @@ describe("AcpxRuntime fresh reset wrapper", () => {
|
||||
reason: "user-close",
|
||||
});
|
||||
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("does not tear down reusable ACPX sessions after cancel", async () => {
|
||||
@@ -1019,7 +1019,7 @@ describe("AcpxRuntime fresh reset wrapper", () => {
|
||||
|
||||
expect(cancel).toHaveBeenCalledWith(input);
|
||||
expect(listProcesses).not.toHaveBeenCalled();
|
||||
expect(killed).toEqual([]);
|
||||
expect(killed).toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("routes openclaw ensureSession through the bridge-safe delegate when MCP servers are configured", async () => {
|
||||
|
||||
Reference in New Issue
Block a user