Skip to content

Commit

Permalink
fixup: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Feb 22, 2020
1 parent f4a1245 commit 40c0b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-stream-pipeline-uncaught.js
Expand Up @@ -8,18 +8,18 @@ const {
const assert = require('assert');

process.on('uncaughtException', common.mustCall((err) => {
assert.strictEqual(err.message, 'asd');
assert.strictEqual(err.message, 'error');
}));

// Ensure that pipeline that ends with Promise
// still propagates error to uncaughtException.
const s = new PassThrough();
s.end('asd');
s.end('data');
pipeline(s, async function(source) {
for await (const chunk of source) {
chunk;
}
}, common.mustCall((err) => {
assert.ifError(err);
throw new Error('asd');
throw new Error('error');
}));

0 comments on commit 40c0b13

Please sign in to comment.