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
This commit is contained in:
can1357
2026-08-05 01:22:36 +02:00
parent ece9245a0a
commit cab9f62400
@@ -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