From 0cae188c5844ea1f2847be0f9e2a2e91cfd8b533 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 05:37:59 +0100 Subject: [PATCH] test: tighten process respawn assertions --- src/infra/process-respawn.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/infra/process-respawn.test.ts b/src/infra/process-respawn.test.ts index 89e64d401ab..3421b918743 100644 --- a/src/infra/process-respawn.test.ts +++ b/src/infra/process-respawn.test.ts @@ -155,10 +155,11 @@ describe("restartGatewayProcessWithFreshPid", () => { expect(spawnMock).toHaveBeenCalledWith( process.execPath, ["--import", "tsx", "/repo/dist/index.js", "gateway", "run"], - expect.objectContaining({ + { detached: true, + env: process.env, stdio: "inherit", - }), + }, ); }); @@ -286,11 +287,11 @@ describe("respawnGatewayProcessForUpdate", () => { expect(spawnMock).toHaveBeenCalledWith( process.execPath, ["C:\\openclaw\\dist\\index.js", "gateway", "run"], - expect.objectContaining({ + { detached: true, env: process.env, stdio: "inherit", - }), + }, ); }); });