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 oyyd committed Apr 28, 2019
1 parent fa3714d commit 558e5c4
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 558e5c4

Please sign in to comment.