From c412f4bf9f23ded2269d510221b9a887595d9e3b Mon Sep 17 00:00:00 2001 From: i-trytoohard <193449657+i-trytoohard@users.noreply.github.com> Date: Mon, 18 May 2026 19:07:19 +0530 Subject: [PATCH] test: isolate daemon shutdown terminal port --- .../integration-tests/src/daemon-children.integration.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/integration-tests/src/daemon-children.integration.test.ts b/packages/integration-tests/src/daemon-children.integration.test.ts index 4e6bc00b9..a0ef53e7d 100644 --- a/packages/integration-tests/src/daemon-children.integration.test.ts +++ b/packages/integration-tests/src/daemon-children.integration.test.ts @@ -60,10 +60,12 @@ describe.skipIf(!canRun)("daemon child reaping (integration)", () => { let configPath: string; let startPid: number | undefined; let port: number; + let directTerminalPort: number; beforeEach(async () => { tmpHome = await realpath(await mkdtemp(join(tmpdir(), "ao-daemon-int-home-"))); port = await getFreePort(); + directTerminalPort = await getFreePort(); repoPath = join(tmpHome, "repo"); mkdirSync(repoPath, { recursive: true }); await execFileAsync("git", ["init"], { cwd: repoPath }); @@ -115,6 +117,7 @@ describe.skipIf(!canRun)("daemon child reaping (integration)", () => { AO_CONFIG_PATH: configPath, AO_GLOBAL_CONFIG: configPath, AO_SHUTDOWN_GRACE_MS: "15000", + DIRECT_TERMINAL_PORT: String(directTerminalPort), PORT: String(port), }; const start = spawn(tsxBin, [cliEntry, "start", "--no-orchestrator", "--reap-orphans"], {