From 6fd1384a4321c1acd817b65f0e3424f11913ca9a Mon Sep 17 00:00:00 2001 From: jyjunyz Date: Sun, 28 Apr 2019 16:58:20 +0800 Subject: [PATCH] test: add mustcall in test-dgram-connect-send-callback-buffer-length add mustcall() on client.bind callback PR-URL: https://github.com/nodejs/node/pull/27464 Reviewed-By: Weijia Wang Reviewed-By: Yorkie Liu Reviewed-By: Ouyang Yadong Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig --- .../test-dgram-connect-send-callback-buffer-length.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-connect-send-callback-buffer-length.js b/test/parallel/test-dgram-connect-send-callback-buffer-length.js index 3dc089e7386b5a..08c220682e79af 100644 --- a/test/parallel/test-dgram-connect-send-callback-buffer-length.js +++ b/test/parallel/test-dgram-connect-send-callback-buffer-length.js @@ -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); })); -}); +}));