Skip to content

Commit

Permalink
Update test/parallel/test-stream-err-multiple-callback-construction.js
Browse files Browse the repository at this point in the history
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
haze and lpinca authored Mar 16, 2024
1 parent dcdcf76 commit f3e8260
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestWritable extends stream.Writable {

const writable = new TestWritable();

writable.on('finish', common.mustCall(1));
writable.on('finish', common.mustCall());
writable.on('error', common.mustCall((error) => {
assert.strictEqual(error.message, 'Callback called multiple times');
}));
Expand Down

0 comments on commit f3e8260

Please sign in to comment.