mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 21:04:45 +00:00
test: tighten process respawn assertions
This commit is contained in:
@@ -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",
|
||||
}),
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user