test: tighten acp empty array assertions

This commit is contained in:
Shakker
2026-05-09 05:07:44 +01:00
parent 919e87784c
commit 1663b75862
3 changed files with 8 additions and 8 deletions

View File

@@ -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);
});

View File

@@ -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 () => {

View File

@@ -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 () => {