Skip to content

Commit

Permalink
stream: fix broken pipeline test
Browse files Browse the repository at this point in the history
An unfortunate overlap between two PR that by themselves pass
CI but together pass a test.

nodejs#32967 changes so that
pipeline does not wait for 'close'.

nodejs#32968 changed so that
all streams are not destroyed.

Which made one test fail when expected the stream to be
destroyed during pipeline callback.
  • Loading branch information
ronag committed Apr 23, 2020
1 parent d8c57cb commit 6080c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-stream-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ const net = require('net');
dst.readable = false;
pipeline(src, dst, common.mustCall((err) => {
assert(!err);
assert.strictEqual(dst.destroyed, true);
assert.strictEqual(dst.destroyed, false);
}));
src.end();
}
Expand Down

0 comments on commit 6080c94

Please sign in to comment.