diff --git a/apps/dokploy/__test__/settings/install-agenthits-update.test.ts b/apps/dokploy/__test__/settings/install-agenthits-update.test.ts index 2bd728baa01..31b69901579 100644 --- a/apps/dokploy/__test__/settings/install-agenthits-update.test.ts +++ b/apps/dokploy/__test__/settings/install-agenthits-update.test.ts @@ -14,7 +14,7 @@ import { import { tmpdir } from "node:os"; import path from "node:path"; import { fileURLToPath } from "node:url"; -import { describe, expect, it } from "vitest"; +import { describe, expect, it, vi } from "vitest"; import { parse } from "yaml"; const repoRoot = path.resolve( @@ -26,6 +26,10 @@ const powershellScript = path.join(repoRoot, "install-agenthits.ps1"); const SPAWN_TEST_TIMEOUT_MS = 60_000; +// The update tests run the installer, which waits for Traefik for several seconds. +// The default limit of 5 seconds fails on a loaded CI runner. +vi.setConfig({ testTimeout: SPAWN_TEST_TIMEOUT_MS }); + const realPath = (command: string) => spawnSync("sh", ["-c", `command -v ${command}`], { encoding: "utf8",