diff --git a/src/cron/isolated-agent.auth-profile-propagation.test.ts b/src/cron/isolated-agent.auth-profile-propagation.test.ts index f50a3c5f30c..d14fc5185c4 100644 --- a/src/cron/isolated-agent.auth-profile-propagation.test.ts +++ b/src/cron/isolated-agent.auth-profile-propagation.test.ts @@ -14,13 +14,13 @@ import { import { setupIsolatedAgentTurnMocks } from "./isolated-agent.test-setup.js"; describe("runCronIsolatedAgentTurn auth profile propagation (#20624)", () => { + const timeoutMs = process.platform === "win32" ? 240_000 : 120_000; + beforeEach(() => { setupIsolatedAgentTurnMocks({ fast: true }); }); - it( - "passes authProfileId to runEmbeddedPiAgent when auth profiles exist", - async () => { + it("passes authProfileId to runEmbeddedPiAgent when auth profiles exist", async () => { await withTempCronHome(async (home) => { const storePath = await writeSessionStore(home, { lastProvider: "webchat", lastTo: "" }); @@ -86,7 +86,5 @@ describe("runCronIsolatedAgentTurn auth profile propagation (#20624)", () => { expect(callArgs?.authProfileId).toBe("openrouter:default"); }); - }, - process.platform === "win32" ? 240_000 : 120_000, - ); + }, timeoutMs); });