Skip to content

Commit

Permalink
chore: check for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 14, 2024
1 parent e886a69 commit 1807ee8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/playwright/test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ describe.runIf(process.platform !== 'win32')('basic', async () => {
})

afterAll(async () => {
await browser.close()
// hook timed out and we already have another error
await browser?.close()
await new Promise<void>((resolve, reject) => {
server.httpServer.close(error => error ? reject(error) : resolve())
server?.httpServer.close(error => error ? reject(error) : resolve())
})
})

Expand Down

0 comments on commit 1807ee8

Please sign in to comment.