test: fix oxfmt in auth-profile-propagation, add timeout for wizard contract on Windows

Made-with: Cursor
This commit is contained in:
OpenClaw Contributor 2026-03-16 22:35:25 +00:00
parent a0395bb71b
commit 9488fff7d5

View File

@ -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);
});