Skip to content

Commit d4a34ae

Browse files
committed
test: fix catching failed assertion
1 parent 2081082 commit d4a34ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-stream-duplex-from.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ const { Blob } = require('buffer');
142142
}
143143
assert.strictEqual(ret, 'abcdefghi');
144144
},
145-
common.mustCall(),
145+
common.mustCall((error) => {
146+
assert.ok(error === undefined);
147+
}),
146148
);
147149
}
148150

0 commit comments

Comments
 (0)