Skip to content

Commit c7afbd9

Browse files
committed
test: add mustcall in test-dgram-connect-send-callback-buffer-length
add mustcall() on client.bind callback
1 parent 31b3dd2 commit c7afbd9

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

Lines changed: 2 additions & 2 deletions
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)