test: bump timeout for flaky macOS CI test (60s → 180s)

This commit is contained in:
Andrew Lauppe 2026-01-25 00:51:00 -05:00
parent 5fd3423ddb
commit 0c996c3f1f

View File

@ -70,7 +70,7 @@ vi.mock("@mariozechner/pi-ai", async () => {
}, },
streamSimple: (model: { api: string; provider: string; id: string }) => { streamSimple: (model: { api: string; provider: string; id: string }) => {
const stream = new actual.AssistantMessageEventStream(); const stream = new actual.AssistantMessageEventStream();
queueMicrotask(() => { setTimeout(() => {
stream.push({ stream.push({
type: "done", type: "done",
reason: "stop", reason: "stop",
@ -80,7 +80,7 @@ vi.mock("@mariozechner/pi-ai", async () => {
: buildAssistantMessage(model), : buildAssistantMessage(model),
}); });
stream.end(); stream.end();
}); }, 0);
return stream; return stream;
}, },
}; };
@ -213,7 +213,7 @@ describe("runEmbeddedPiAgent", () => {
itIfNotWin32( itIfNotWin32(
"persists the first user message before assistant output", "persists the first user message before assistant output",
{ timeout: 120_000 }, { timeout: 180_000 },
async () => { async () => {
const sessionFile = nextSessionFile(); const sessionFile = nextSessionFile();
const cfg = makeOpenAiConfig(["mock-1"]); const cfg = makeOpenAiConfig(["mock-1"]);