test: complete persistence and browser safety net
This commit is contained in:
@@ -25,7 +25,6 @@ suite('PostgreSQL migrations', () => {
|
||||
|
||||
afterAll(async () => {
|
||||
if (!adminClient) return
|
||||
await adminClient.query('SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = $1', [databaseName])
|
||||
await adminClient.query(`DROP DATABASE IF EXISTS "${databaseName}"`)
|
||||
await adminClient.end()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user