Skip to content

Commit 5a2b688

Browse files
Raja PanidepuFishrock123
Raja Panidepu
authored andcommitted
test: updated test-stream-pipe-unpipe-stream
test readableStream.unpipe(dest) is no operation when dest is not a destination for readable stream. PR-URL: #10100 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent ac8d212 commit 5a2b688

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-stream-pipe-unpipe-streams.js

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ source.unpipe(dest2);
2525
assert.strictEqual(source._readableState.pipes, dest1);
2626
assert.notStrictEqual(source._readableState.pipes, dest2);
2727

28+
dest2.on('unpipe', common.fail);
29+
source.unpipe(dest2);
30+
2831
source.unpipe(dest1);
2932

3033
assert.strictEqual(source._readableState.pipes, null);

0 commit comments

Comments
 (0)