test: extend vitest timeouts

This commit is contained in:
Peter Steinberger
2026-01-16 03:11:02 +00:00
parent 16bc4cdef3
commit f449115ec5
4 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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