test(memory): cleanup mcporter globals between tests

This commit is contained in:
vignesh07
2026-02-17 19:54:00 -08:00
committed by Vignesh Natarajan
parent 422711ecd9
commit ecacb5092c

View File

@@ -148,6 +148,8 @@ describe("QmdMemoryManager", () => {
afterEach(async () => {
vi.useRealTimers();
delete process.env.OPENCLAW_STATE_DIR;
delete (globalThis as Record<string, unknown>).__openclawMcporterDaemonStart;
delete (globalThis as Record<string, unknown>).__openclawMcporterColdStartWarned;
});
it("debounces back-to-back sync calls", async () => {