diff --git a/federation/src/graphql/api/1_0/resolver/SendCoinsResolver.test.ts b/federation/src/graphql/api/1_0/resolver/SendCoinsResolver.test.ts index 096469d3c..a21bfa91d 100644 --- a/federation/src/graphql/api/1_0/resolver/SendCoinsResolver.test.ts +++ b/federation/src/graphql/api/1_0/resolver/SendCoinsResolver.test.ts @@ -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() } }) diff --git a/federation/turbo.json b/federation/turbo.json index 9908083f8..568eb30dc 100644 --- a/federation/turbo.json +++ b/federation/turbo.json @@ -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"]