test: tighten process respawn assertions

This commit is contained in:
Shakker
2026-05-11 05:37:59 +01:00
parent 1f31571b0f
commit 0cae188c58

View File

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