diff --git a/src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts b/src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts index 573922e6120..09694ffb623 100644 --- a/src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts +++ b/src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts @@ -12,6 +12,12 @@ vi.mock("./pi-embedded-runner/run/attempt.js", () => ({ runEmbeddedAttempt: (params: unknown) => runEmbeddedAttemptMock(params), })); +vi.mock("./pi-embedded-runner/compact.js", () => ({ + compactEmbeddedPiSessionDirect: vi.fn(async () => { + throw new Error("compact should not run in auth profile rotation tests"); + }), +})); + vi.mock("./models-config.js", async (importOriginal) => { const mod = await importOriginal(); return {