node-postgres
node-postgres copied to clipboard
pool.end() promise never resolves
const connection1 = await pool.connect();
const connection2 = await pool.connect();
await connection1.end();
await connection2.end();
await pool.end();
is giving Error: Promise returned by test never resolved
More context https://github.com/gajus/postgres-bridge/commit/38b69ded692775e8fefa3c53f3a30a143bc1cdc4
There’s probably something to fix here, but note that you shouldn’t call .end() on connections acquired from a pool – just .release() or .release(true).