mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 23:06:17 +01:00
test(heartbeat): close external fixture private clients
This commit is contained in:
1 parent
5af87e0808
commit
80758f0b18
1 file changed
+2
@@ -18,6 +18,7 @@ import {
|
||||
authUsers,
|
||||
companyMemberships,
|
||||
createDb,
|
||||
closeRegisteredClients,
|
||||
documentRevisions,
|
||||
documents,
|
||||
environmentLeases,
|
||||
@@ -191,6 +192,7 @@ describeEmbeddedPostgres("heartbeat dependency-aware queued run selection", () =
|
||||
afterAll(async () => {
|
||||
await db?.delete(authUsers).where(eq(authUsers.id, "responsible-user"));
|
||||
await db?.$client.end();
|
||||
if (external) await closeRegisteredClients(external, { scope: "database" });
|
||||
await tempDb?.cleanup();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user