mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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: https://github.com/nodejs/node/pull/10100 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
ac8d212428
commit
5a2b68896c
1 file changed
+3
@@ -25,6 +25,9 @@ source.unpipe(dest2);
|
||||
assert.strictEqual(source._readableState.pipes, dest1);
|
||||
assert.notStrictEqual(source._readableState.pipes, dest2);
|
||||
|
||||
dest2.on('unpipe', common.fail);
|
||||
source.unpipe(dest2);
|
||||
|
||||
source.unpipe(dest1);
|
||||
|
||||
assert.strictEqual(source._readableState.pipes, null);
|
||||
Reference in new issue
Block a user