ci: Fix CI timeout issues (no-changelog) (#5250)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-26 11:44:50 +01:00
committed by GitHub
parent 54333398ce
commit c8a146ba31
7 changed files with 34 additions and 19 deletions

View File

@@ -95,7 +95,8 @@ export async function init() {
* Drop test DB, closing bootstrap connection if existing.
*/
export async function terminate() {
await Db.getConnection().destroy();
const connection = Db.getConnection();
if (connection.isInitialized) await connection.destroy();
}
/**