From f449115ec5e760825006b99ec0f33213e27689c2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 16 Jan 2026 03:11:02 +0000 Subject: [PATCH] test: extend vitest timeouts --- src/cli/cron-cli.test.ts | 2 +- src/cli/gateway-cli.coverage.test.ts | 4 ++-- ...esult.accepts-guild-messages-mentionpatterns-match.test.ts | 2 +- vitest.config.ts | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cli/cron-cli.test.ts b/src/cli/cron-cli.test.ts index 05d5c9084..610dcde90 100644 --- a/src/cli/cron-cli.test.ts +++ b/src/cli/cron-cli.test.ts @@ -26,7 +26,7 @@ vi.mock("../runtime.js", () => ({ })); describe("cron cli", () => { - it("trims model and thinking on cron add", { timeout: 15_000 }, async () => { + it("trims model and thinking on cron add", { timeout: 30_000 }, async () => { callGatewayFromCli.mockClear(); const { registerCronCli } = await import("./cron-cli.js"); diff --git a/src/cli/gateway-cli.coverage.test.ts b/src/cli/gateway-cli.coverage.test.ts index 2decdba83..5e380e4b2 100644 --- a/src/cli/gateway-cli.coverage.test.ts +++ b/src/cli/gateway-cli.coverage.test.ts @@ -116,7 +116,7 @@ describe("gateway-cli coverage", () => { expect(callGateway).toHaveBeenCalledTimes(1); expect(runtimeLogs.join("\n")).toContain('"ok": true'); - }, 15_000); + }, 30_000); it("registers gateway status and routes to gatewayStatusCommand", async () => { runtimeLogs.length = 0; @@ -131,7 +131,7 @@ describe("gateway-cli coverage", () => { await program.parseAsync(["gateway", "status", "--json"], { from: "user" }); expect(gatewayStatusCommand).toHaveBeenCalledTimes(1); - }, 15_000); + }, 30_000); it("registers gateway discover and prints JSON", async () => { runtimeLogs.length = 0; diff --git a/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts b/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts index 21e08abe8..a000ac0b9 100644 --- a/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts +++ b/src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts @@ -124,7 +124,7 @@ describe("discord tool result dispatch", () => { expect(dispatchMock).toHaveBeenCalledTimes(1); expect(sendMock).toHaveBeenCalledTimes(1); - }, 10000); + }, 20_000); it("forks thread sessions and injects starter context", async () => { const { createDiscordMessageHandler } = await import("./monitor.js"); diff --git a/vitest.config.ts b/vitest.config.ts index 060434144..407121f1e 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { + testTimeout: 20_000, include: [ "src/**/*.test.ts", "extensions/**/*.test.ts",