Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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",
Expand Down