fix: undo container pg connection destroy (#5500)
This commit is contained in:
1 parent
4d52082bf0
commit
399005cc58
1 file changed
-6
@@ -69,14 +69,8 @@ const DbTestUtil = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
shutdown: async function () {
|
shutdown: async function () {
|
||||||
const container = getContainer()
|
|
||||||
const containerPgConnection = container.resolve(
|
|
||||||
ContainerRegistrationKeys.PG_CONNECTION
|
|
||||||
)
|
|
||||||
|
|
||||||
await this.db_.destroy()
|
await this.db_.destroy()
|
||||||
await this.pgConnection_?.context?.destroy()
|
await this.pgConnection_?.context?.destroy()
|
||||||
await containerPgConnection?.context?.destroy()
|
|
||||||
|
|
||||||
return await dropDatabase({ DB_NAME }, pgGodCredentials)
|
return await dropDatabase({ DB_NAME }, pgGodCredentials)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user