Skip to content

Commit

Permalink
🧪 close pgmq afterAll tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Magdi committed Feb 3, 2024
1 parent 7da219b commit 00c1dff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/msg-manager/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,8 @@ describe('MsgManager', () => {
afterEach(async () => {
await pgmq.queue.drop(qName);
});

afterAll(async () => {
await pgmq.close();
});
});
4 changes: 4 additions & 0 deletions src/queue-manager/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,8 @@ describe('QueueManager', () => {
await Promise.all([pgmq.queue.drop(qName1), pgmq.queue.drop(qName2)]);
});
});

afterAll(async () => {
await pgmq.close();
});
});

0 comments on commit 00c1dff

Please sign in to comment.