This came up last week I think, when running tests it hangs afterwards as the connection to the db stays open.
Ensure dbConnection is required in to the test file
// using pg
tape.onFinish(() => {
dbConnection.end()
})
// using pg-promise
tape.onFinish(() => {
dbConnection.$pool.end()
})