diff --git a/tests/integration/setup.ts b/tests/integration/setup.ts index 2fc410a678..baf9a63b96 100644 --- a/tests/integration/setup.ts +++ b/tests/integration/setup.ts @@ -1,6 +1,6 @@ import '../globalSetup'; -import { afterEach, beforeAll, beforeEach, vi } from 'vitest'; +import { afterEach, beforeEach, vi } from 'vitest'; import { prisma } from '../../src/lib/settings/prisma'; @@ -29,15 +29,6 @@ globalClient.fetchUser = async (id: string | bigint) => ({ send: async () => {} }); -// beforeAll(async () => { -// console.log( -// await global.prisma!.$queryRawUnsafe(`SELECT pg_terminate_backend(pid) -// FROM pg_stat_activity -// WHERE state = 'idle' -// AND pid <> pg_backend_pid();`) -// ); -// }); - beforeEach(async () => { await prisma.$connect(); console.log(await prisma.$queryRawUnsafe('select count(*) from pg_stat_activity;'));