test: add mustCall to test-dgram-connect-send-callback-buffer

PR-URL: https://github.com/nodejs/node/pull/27466
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
This commit is contained in:
shenchen 2019-04-28 17:36:38 +08:00 committed by oyyd
parent 4cf8b4212c
commit 77b9007395

View File

@ -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);
}));
});
}));