Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 25, 2024
1 parent ada3ffd commit b92bd55
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/integration/setup.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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;'));
Expand Down

0 comments on commit b92bd55

Please sign in to comment.