test(server): close plugin heartbeat db client

This commit is contained in:
Devin Foley committed 2026-05-03 18:49:48 -07:00
1 parent 55418c3fb7
commit 44cd1cd6f8
1 file changed
+2
@@ -35,6 +35,7 @@ vi.mock("../adapters/index.js", () => ({
execute: adapterExecute,
supportsLocalAgentJwt: false,
}),
listAdapterModelProfiles: async () => [],
runningProcesses: new Map(),
}));
@@ -67,6 +68,7 @@ describeEmbeddedPostgres("heartbeat plugin environments", () => {
});
afterAll(async () => {
await db.$client.end();
await stopDb?.();
});