From 9488fff7d52806d90410da98f844e69271a4b02d Mon Sep 17 00:00:00 2001 From: OpenClaw Contributor Date: Mon, 16 Mar 2026 22:35:25 +0000 Subject: [PATCH] test: fix oxfmt in auth-profile-propagation, add timeout for wizard contract on Windows Made-with: Cursor --- .../isolated-agent.auth-profile-propagation.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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); });