Skip to content

Commit

Permalink
test(api): obliterate queue after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyostiq committed Jul 7, 2021
1 parent c6eb490 commit 735615b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ const getFixtures = async () => {
},
async cleanup() {
await Promise.all(addedJobIds.map((id) => queue.remove(id)));
await queue.drain();
await Promise.all(
workers.map(async (worker) => {
await worker.close(true);
await worker.disconnect();
}),
);
await queue.obliterate({ force: true });
await testingModule.close();
},
getBullmqQueue() {
Expand Down

0 comments on commit 735615b

Please sign in to comment.