Closed davidmarkclements closed 6 years ago
i do not think this is a correct fix. That bug on cloneable-readable was real, so it’s a bug in this one that need fixing.
Il giorno mer 20 giu 2018 alle 16:08 David Mark Clements < notifications@github.com> ha scritto:
Merged #9 https://github.com/pinojs/pino-tee/pull/9.
— You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub https://github.com/pinojs/pino-tee/pull/9#event-1691587035, or mute the thread https://github.com/notifications/unsubscribe-auth/AADL4-q9QGHcPhwV-85h-pjPfwMHcjE5ks5t-nOIgaJpZM4UvHh2 .
cloneable-readable v1.1.0+ breaks https://github.com/pinojs/pino-tee/blob/master/test/api.js#L42-L79
specifically, https://github.com/pinojs/pino-tee/blob/master/test/api.js#L66 occurs too late for cloneable-readable to hold onto the data in the pipeline so https://github.com/pinojs/pino-tee/blob/master/test/api.js#L71 is never fired and the test never finishes.
This fixes the behaviour and tests, I found this bug using the new http://github.com/pinojs/pino-integration CI runner – this is the final thing to fix before we are sure that all tests pass in current ecosystem modules and on pino master