fix federation test error

This commit is contained in:
einhornimmond 2025-04-29 09:35:02 +02:00
parent 08a2f391fb
commit a074094f46
2 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,8 @@ beforeAll(async () => {
afterAll(async () => {
// await cleanDB()
if (!testEnv.con || !testEnv.con.isConnected) {
await testEnv.con.close()
if (testEnv.con?.isInitialized) {
await testEnv.con.destroy()
}
})

View File

@ -2,7 +2,7 @@
"extends": ["//"],
"tasks": {
"test": {
"dependsOn": ["database#up:federation_test"]
"dependsOn": ["database#up:federation_test", "config-schema#build", "database#build"]
},
"dev": {
"dependsOn": ["database#up"]