From 0c996c3f1fe4194d4f908f57c17131f37a4c6228 Mon Sep 17 00:00:00 2001 From: Andrew Lauppe Date: Sun, 25 Jan 2026 00:51:00 -0500 Subject: [PATCH] =?UTF-8?q?test:=20bump=20timeout=20for=20flaky=20macOS=20?= =?UTF-8?q?CI=20test=20(60s=20=E2=86=92=20180s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agents/pi-embedded-runner.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/pi-embedded-runner.test.ts b/src/agents/pi-embedded-runner.test.ts index 03192338b..6c1ba2b61 100644 --- a/src/agents/pi-embedded-runner.test.ts +++ b/src/agents/pi-embedded-runner.test.ts @@ -70,7 +70,7 @@ vi.mock("@mariozechner/pi-ai", async () => { }, streamSimple: (model: { api: string; provider: string; id: string }) => { const stream = new actual.AssistantMessageEventStream(); - queueMicrotask(() => { + setTimeout(() => { stream.push({ type: "done", reason: "stop", @@ -80,7 +80,7 @@ vi.mock("@mariozechner/pi-ai", async () => { : buildAssistantMessage(model), }); stream.end(); - }); + }, 0); return stream; }, }; @@ -213,7 +213,7 @@ describe("runEmbeddedPiAgent", () => { itIfNotWin32( "persists the first user message before assistant output", - { timeout: 120_000 }, + { timeout: 180_000 }, async () => { const sessionFile = nextSessionFile(); const cfg = makeOpenAiConfig(["mock-1"]);