Skip to content

Commit

Permalink
test: add mustcall in test-dgram-connect-send-callback-buffer-length
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jyjunyz authored and targos committed Apr 29, 2019
1 parent 7a35077 commit 6fd1384
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const messageSent = common.mustCall(function messageSent(err, bytes) {
client.close();
});

client.bind(0, () => {
client.bind(0, common.mustCall(() => {
client.connect(client.address().port, common.mustCall(() => {
client.send(buf, offset, len, messageSent);
}));
});
}));

0 comments on commit 6fd1384

Please sign in to comment.