From 6f68f30b655c86538b43f90621163e8f62b7fcd5 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 11 Jun 2021 16:48:53 +0200 Subject: [PATCH] fixup: test --- test/parallel/test-stream-pipeline.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-stream-pipeline.js b/test/parallel/test-stream-pipeline.js index a729e77218b183..a6f4bffb46e5ee 100644 --- a/test/parallel/test-stream-pipeline.js +++ b/test/parallel/test-stream-pipeline.js @@ -1402,8 +1402,14 @@ const net = require('net'); const writableLike = new EE(); writableLike.write = () => false; - pipeline(async function *() { yield null }, writableLike, - common.expectsError({ code: 'ERR_STREAM_PREMATURE_CLOSE' })); + pipeline( + async function *() { + yield null; + yield null; + }, + writableLike, + common.expectsError({ code: 'ERR_STREAM_PREMATURE_CLOSE' }) + ); writableLike.emit('close'); }