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); }