Skip to content

Commit

Permalink
test: add mustCall to test-dgram-connect-send-callback-buffer
Browse files Browse the repository at this point in the history
PR-URL: #27466
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ouyang Yadong <[email protected]>
  • Loading branch information
shenchen authored and targos committed Apr 29, 2019
1 parent a37ca24 commit 23fb430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-dgram-connect-send-callback-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const onMessage = common.mustCall(function(err, bytes) {
client.close();
});

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

0 comments on commit 23fb430

Please sign in to comment.