Skip to content

Commit acb44d0

Browse files
Raja Panidepumcollina
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 <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 34a6c85 commit acb44d0

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)