fix: isolate pi provider smoke

This commit is contained in:
2026-08-05 01:19:46 +02:00
parent 55926c75f8
commit 174f854b96
3 changed files with 188 additions and 10 deletions
+4 -1
View File
@@ -47,7 +47,10 @@ test("status parses only a Pi version from a fixed execFile argument array", asy
config: { provider: "zai", model: "glm-5.2", reasoning: "medium" },
checkedAt: "2026-08-05T10:00:00.000Z",
});
expect(calls).toEqual([{ command: "/usr/local/bin/pi", args: ["--version"], timeout: 750 }]);
expect(calls).toHaveLength(1);
expect(calls[0]).toMatchObject({ command: "/usr/local/bin/pi", args: ["--version"] });
expect(calls[0].timeout).toBeGreaterThan(0);
expect(calls[0].timeout).toBeLessThanOrEqual(750);
});
// Catches an options response that leaks provider metadata or lets callers choose model IDs that