Skip to content

Commit

Permalink
move client end for psql adapter test
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Oct 24, 2024
1 parent bf51ff9 commit d5d61e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/psql/__tests__/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ test.describe('Tests', () => {
port: 5432,
});

test.after(async () => {
await client.end();
});

test.it('Pizza counter test', async () => {
const bot = utils.createBot();

Expand All @@ -40,7 +36,7 @@ test.describe('Tests', () => {
await bot.handleUpdate(utils.createMessage(bot, 'second').update);
});

test('Should be changed', async () => {
test.it('Should be changed', async () => {
const client = new pg.Client({
user: 'postgres',
password: 'postgres',
Expand All @@ -66,4 +62,8 @@ test.describe('Tests', () => {
await bot.handleUpdate(utils.createMessage(bot, 'first').update);
await bot.handleUpdate(utils.createMessage(bot, 'second').update);
});

test.after(async () => {
await client.end();
});
});

0 comments on commit d5d61e4

Please sign in to comment.