fix(scripts): run RPC RTT probe without pnpm

This commit is contained in:
Vincent Koc
2026-06-04 01:22:33 +02:00
parent 25f3d2d714
commit 009d7335b5
2 changed files with 45 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ describe("scripts/measure-rpc-rtt.mjs", () => {
openImpl,
port: 23456,
repoRoot: "/repo",
sourceEntryExists: () => true,
spawnImpl,
stderrPath: "/tmp/stderr.log",
stdoutPath: "/tmp/stdout.log",
@@ -40,9 +41,11 @@ describe("scripts/measure-rpc-rtt.mjs", () => {
expect(openImpl).toHaveBeenNthCalledWith(1, "/tmp/stdout.log", "w");
expect(openImpl).toHaveBeenNthCalledWith(2, "/tmp/stderr.log", "w");
expect(spawnImpl).toHaveBeenCalledWith(
"pnpm",
process.execPath,
[
"openclaw",
"--import",
"tsx",
"/repo/src/entry.ts",
"gateway",
"run",
"--port",