Skip to content

Commit

Permalink
Don't await closing clients (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Nov 8, 2023
1 parent 98afc5c commit 6bcefdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/eventHub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ describe('eventHub', () => {
});

after(async () => {
await Promise.all([
clientOneTriggerAndOutput.close(),
clientOneTrigger.close(),
clientManyTriggerAndOutput.close(),
clientManyTrigger.close(),
]);
void clientOneTriggerAndOutput.close();
void clientOneTrigger.close();
void clientManyTriggerAndOutput.close();
void clientManyTrigger.close();
});

describe('cardinality one', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/serviceBus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('serviceBus', () => {
});

after(async () => {
await client.close();
void client.close();
});

it('queue trigger and output', async () => {
Expand Down

0 comments on commit 6bcefdf

Please sign in to comment.