Skip to content

Commit

Permalink
fixup: test
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jun 11, 2021
1 parent 2ba4a10 commit 6f68f30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/parallel/test-stream-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 6f68f30

Please sign in to comment.