test: extend vitest timeouts
This commit is contained in:
@@ -26,7 +26,7 @@ vi.mock("../runtime.js", () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
describe("cron cli", () => {
|
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();
|
callGatewayFromCli.mockClear();
|
||||||
|
|
||||||
const { registerCronCli } = await import("./cron-cli.js");
|
const { registerCronCli } = await import("./cron-cli.js");
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ describe("gateway-cli coverage", () => {
|
|||||||
|
|
||||||
expect(callGateway).toHaveBeenCalledTimes(1);
|
expect(callGateway).toHaveBeenCalledTimes(1);
|
||||||
expect(runtimeLogs.join("\n")).toContain('"ok": true');
|
expect(runtimeLogs.join("\n")).toContain('"ok": true');
|
||||||
}, 15_000);
|
}, 30_000);
|
||||||
|
|
||||||
it("registers gateway status and routes to gatewayStatusCommand", async () => {
|
it("registers gateway status and routes to gatewayStatusCommand", async () => {
|
||||||
runtimeLogs.length = 0;
|
runtimeLogs.length = 0;
|
||||||
@@ -131,7 +131,7 @@ describe("gateway-cli coverage", () => {
|
|||||||
await program.parseAsync(["gateway", "status", "--json"], { from: "user" });
|
await program.parseAsync(["gateway", "status", "--json"], { from: "user" });
|
||||||
|
|
||||||
expect(gatewayStatusCommand).toHaveBeenCalledTimes(1);
|
expect(gatewayStatusCommand).toHaveBeenCalledTimes(1);
|
||||||
}, 15_000);
|
}, 30_000);
|
||||||
|
|
||||||
it("registers gateway discover and prints JSON", async () => {
|
it("registers gateway discover and prints JSON", async () => {
|
||||||
runtimeLogs.length = 0;
|
runtimeLogs.length = 0;
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ describe("discord tool result dispatch", () => {
|
|||||||
|
|
||||||
expect(dispatchMock).toHaveBeenCalledTimes(1);
|
expect(dispatchMock).toHaveBeenCalledTimes(1);
|
||||||
expect(sendMock).toHaveBeenCalledTimes(1);
|
expect(sendMock).toHaveBeenCalledTimes(1);
|
||||||
}, 10000);
|
}, 20_000);
|
||||||
|
|
||||||
it("forks thread sessions and injects starter context", async () => {
|
it("forks thread sessions and injects starter context", async () => {
|
||||||
const { createDiscordMessageHandler } = await import("./monitor.js");
|
const { createDiscordMessageHandler } = await import("./monitor.js");
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { defineConfig } from "vitest/config";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
|
testTimeout: 20_000,
|
||||||
include: [
|
include: [
|
||||||
"src/**/*.test.ts",
|
"src/**/*.test.ts",
|
||||||
"extensions/**/*.test.ts",
|
"extensions/**/*.test.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user