Skip to content

Commit 6fd1384

Browse files
jyjunyztargos
authored andcommitted
test: add mustcall in test-dgram-connect-send-callback-buffer-length
add mustcall() on client.bind callback PR-URL: #27464 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Yorkie Liu <[email protected]> Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 7a35077 commit 6fd1384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dgram-connect-send-callback-buffer-length.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const messageSent = common.mustCall(function messageSent(err, bytes) {
1717
client.close();
1818
});
1919

20-
client.bind(0, () => {
20+
client.bind(0, common.mustCall(() => {
2121
client.connect(client.address().port, common.mustCall(() => {
2222
client.send(buf, offset, len, messageSent);
2323
}));
24-
});
24+
}));

0 commit comments

Comments
 (0)