




















@@ -137,7 +137,9 @@ describe("kitchen-sink RPC gateway teardown", () => {
137137throw error;
138138});
139139140-await expect(stopGateway(child, { killGraceMs: 1, teardownGraceMs: 1 })).resolves.toBeUndefined();
140+await expect(
141+stopGateway(child, { killGraceMs: 1, teardownGraceMs: 1 }),
142+).resolves.toBeUndefined();
141143142144expect(child.kill).toHaveBeenCalledOnce();
143145});
@@ -152,7 +154,9 @@ describe("kitchen-sink RPC gateway teardown", () => {
152154child.signalCode = null;
153155child.kill = vi.fn(() => false);
154156155-await expect(stopGateway(child, { killGraceMs: 1, teardownGraceMs: 1 })).resolves.toBeUndefined();
157+await expect(
158+stopGateway(child, { killGraceMs: 1, teardownGraceMs: 1 }),
159+).resolves.toBeUndefined();
156160157161expect(child.kill).toHaveBeenCalledOnce();
158162});
@@ -621,7 +625,7 @@ describe("kitchen-sink RPC process sampling", () => {
621625platform: "linux",
622626runCommand: async (command: string, args: string[]) => {
623627expect(command).toBe("ps");
624-expect(args).toEqual(["-axo", "pid=,ppid=,rss=,pcpu=,command="]);
628+expect(args).toEqual(["-ww", "-axo", "pid=,ppid=,rss=,pcpu=,command="]);
625629return {
626630stdout: [
627631" 4321 1 262144 12.5 node dist/index.js gateway --port 19080",
@@ -646,7 +650,7 @@ describe("kitchen-sink RPC process sampling", () => {
646650posixCommandLineNeedles: ["gateway", "--port", "19080"],
647651runCommand: async (command: string, args: string[]) => {
648652expect(command).toBe("ps");
649-expect(args).toEqual(["-axo", "pid=,ppid=,rss=,pcpu=,command="]);
653+expect(args).toEqual(["-ww", "-axo", "pid=,ppid=,rss=,pcpu=,command="]);
650654return {
651655stdout: [
652656" 4321 1 16384 0.0 node /usr/local/bin/corepack pnpm openclaw gateway --port 19080",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。