diff --git a/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts b/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts index 0368d6c496..3125c0e1ac 100644 --- a/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts +++ b/packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2.ts @@ -36,7 +36,12 @@ export default class SqlMgrv2 { public static async testConnection(args = {}) { const client = await SqlClientFactory.create(args); - return client.testConnection(); + const result = await client.testConnection(); + + // close connection + await client.knex.destroy(); + + return result; } /**