Skip to content

Commit 1dd0205

Browse files
XGHeaventargos
authored andcommitted
test: add mustCall to test-dgram-connect-send-multi-buffer-copy.js
PR-URL: #27465 Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent 0dfe5be commit 1dd0205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dgram-connect-send-multi-buffer-copy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const onMessage = common.mustCall(common.mustCall((err, bytes) => {
1414
const buf1 = Buffer.alloc(256, 'x');
1515
const buf2 = Buffer.alloc(256, 'y');
1616

17-
client.on('listening', function() {
17+
client.on('listening', common.mustCall(function() {
1818
const toSend = [buf1, buf2];
1919
client.connect(client.address().port, common.mustCall(() => {
2020
client.send(toSend, onMessage);
2121
}));
22-
});
22+
}));
2323

2424
client.on('message', common.mustCall(function onMessage(buf, info) {
2525
const expected = Buffer.concat([buf1, buf2]);

0 commit comments

Comments
 (0)