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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user