From cab9f6240085ea8f28d2026a586a53efa2f69644 Mon Sep 17 00:00:00 2001 From: can1357 Date: Wed, 5 Aug 2026 01:22:36 +0200 Subject: [PATCH] test(stats): isolated port-conflict suite from the real stats db - server-port-conflict opened the module-global db against the live agent stats.db, poisoning later files (sync-serial read 2.28M real rows); installStatsTestIsolation gives it a temp agent dir and closes the handle in teardown --- packages/stats/test/server-port-conflict.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/stats/test/server-port-conflict.test.ts b/packages/stats/test/server-port-conflict.test.ts index d5d99bd13..ae92163bc 100644 --- a/packages/stats/test/server-port-conflict.test.ts +++ b/packages/stats/test/server-port-conflict.test.ts @@ -7,6 +7,9 @@ import { STATS_DASHBOARD_SECURITY_VERSION, } from "../src/port-conflict"; import { startServer } from "../src/server"; +import { installStatsTestIsolation } from "./helpers/temp-agent"; + +installStatsTestIsolation("@pi-stats-port-conflict-"); /** * Directly probe a TCP endpoint, bypassing any configured HTTP proxy so the