Skip to content

Commit

Permalink
fixed flaky test in transport (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Oct 25, 2021
1 parent 5b2c1bc commit e5f17ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/transport/core.test.js
Expand Up @@ -223,8 +223,11 @@ test('autoEnd = false', async ({ equal, same, teardown }) => {
worker: { autoEnd: false }
})
teardown(transport.end.bind(transport))
await once(transport, 'ready')

const instance = pino(transport)
instance.info('hello')

await watchFileCreated(destination)

equal(count, process.listenerCount('exit'))
Expand Down

0 comments on commit e5f17ae

Please sign in to comment.