diff --git a/test/transport/core.test.js b/test/transport/core.test.js index bc997e18e..c307ed9c4 100644 --- a/test/transport/core.test.js +++ b/test/transport/core.test.js @@ -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'))