test: stabilize gateway ports and timers

This commit is contained in:
Peter Steinberger
2026-01-18 04:29:52 +00:00
parent cf8b3ed988
commit 1a0d1cb7b2
7 changed files with 137 additions and 135 deletions

View File

@@ -1,4 +1,10 @@
import { installTestEnv } from "./test-env";
import { afterEach, vi } from "vitest";
const { cleanup } = installTestEnv();
process.on("exit", cleanup);
afterEach(() => {
// Guard against leaked fake timers across test files/workers.
vi.useRealTimers();
});