Commit 92ece867 authored by Niels Nielsen's avatar Niels Nielsen Committed by Myles Borins
Browse files

test: add regression test for `unpipe()`

Since 2e568d95 there is a bug where unpiping a stream
from a readable stream that has `_readableState.pipesCount > 1`
will cause it to remove the first stream in the
`_.readableState.pipes` array no matter where in the list the
`dest` stream was.

PR-URL: https://github.com/nodejs/node/pull/9171


Reviewed-By: default avatarEvan Lucas <evanlucas@me.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarMyles Borins <myles.borins@gmail.com>
parent 8043ca79
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment