FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: updated test-stream-pipe-unpipe-stream · nodejs/node@5afcf3a · GitHub

/ node Public

Commit 5afcf3a

Browse files
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 3aa51ec commit 5afcf3a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
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)

Back | FazBrowse Home | New Git URL