From dc88e2f6da470fffae8774482d0bbd1493a93bc5 Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Mon, 16 Sep 2024 23:54:33 +0100 Subject: [PATCH] Fix issue with force exit --- api/setupTests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/setupTests.js b/api/setupTests.js index c502abf7..3fca6294 100644 --- a/api/setupTests.js +++ b/api/setupTests.js @@ -36,6 +36,7 @@ async function applyMigrations(url) { }); const { db, client } = await database.connect(); const migrations = await up(db, client); + await client.close(); for (const migration of migrations) { logger.info("Run migration: %s", migration); }