From 9d8d8e77d91418c7923a32d6cf80e219d0ba72ff Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Sun, 28 Apr 2024 09:43:38 +0200 Subject: [PATCH] fixup Signed-off-by: Matteo Collina --- test/never-drain.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/never-drain.test.js b/test/never-drain.test.js index eab0d49..f55a4cf 100644 --- a/test/never-drain.test.js +++ b/test/never-drain.test.js @@ -22,7 +22,9 @@ function retryUntilTimeout (fn, timeout) { }) } -test('emit warning when the worker gracefully exit without the stream ended', async function (t) { +const isNode18 = process.version.indexOf('v18') === 0 + +test('emit warning when the worker gracefully exit without the stream ended', { skip: !isNode18 }, async function (t) { const expectedWarning = 'ThreadStream: process exited before destination stream was drained. this may indicate that the destination stream try to write to a another missing stream' const stream = new ThreadStream({ filename: join(__dirname, 'to-next.js')