From a477aa4dad8e183c2766e077ab7908ee393f82d3 Mon Sep 17 00:00:00 2001 From: merge-check <140916359+agentHits@users.noreply.github.com> Date: Fri, 9 Oct 2026 03:49:57 -0400 Subject: [PATCH] test(installer): give the installer update tests a 60 second limit The tests run the installer, which waits for Traefik for several seconds. One of them took 6.2 seconds on a loaded CI runner and failed against the default limit of 5 seconds, in pull requests that did not touch the installer. Co-Authored-By: Claude Sonnet 5.5 --- .../__test__/settings/install-agenthits-update.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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",