From 23fb430e03bae6125c29a343285b7843bf7e847c Mon Sep 17 00:00:00 2001 From: shenchen Date: Sun, 28 Apr 2019 17:36:38 +0800 Subject: [PATCH] test: add mustCall to test-dgram-connect-send-callback-buffer PR-URL: https://github.com/nodejs/node/pull/27466 Reviewed-By: Yongsheng Zhang Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Ouyang Yadong --- test/parallel/test-dgram-connect-send-callback-buffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-connect-send-callback-buffer.js b/test/parallel/test-dgram-connect-send-callback-buffer.js index a03d45429b5cf7..ad756b03effa6f 100644 --- a/test/parallel/test-dgram-connect-send-callback-buffer.js +++ b/test/parallel/test-dgram-connect-send-callback-buffer.js @@ -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); })); -}); +}));