Skip to content

Commit

Permalink
test: fix catching failed assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelhoral committed Oct 28, 2022
1 parent 2081082 commit e6cfe9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-stream-duplex-from.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ const { Blob } = require('buffer');
}
assert.strictEqual(ret, 'abcdefghi');
},
common.mustCall(),
common.mustCall((error) => {
assert.ok(error === undefined)
}),
);
}

Expand Down

0 comments on commit e6cfe9f

Please sign in to comment.