Skip to content

Commit

Permalink
fix: close node.js server correctly in the puppeteer example (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed May 7, 2022
1 parent b7973fe commit 98e57e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/puppeteer/test/basic.test.ts
Expand Up @@ -17,7 +17,9 @@ describe('basic', async () => {

afterAll(async () => {
await browser.close()
await server.httpServer.close()
await new Promise<void>((resolve, reject) => {
server.httpServer.close(error => error ? reject(error) : resolve())
})
})

test('should have the correct title', async () => {
Expand Down

0 comments on commit 98e57e2

Please sign in to comment.