Skip to content

Commit

Permalink
fix: close mockserver properly
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Jun 21, 2022
1 parent 278ad08 commit ba9b255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mock.test.ts
Expand Up @@ -75,8 +75,8 @@ beforeAll(() => {
transitlandServer();
})

afterAll(() => {
transitlandServer().close();
afterAll(async () => {
await new Promise<void>(resolve => transitlandServer().close(() => resolve()));
});


Expand Down

0 comments on commit ba9b255

Please sign in to comment.