From 1dd0205f102f7ea2ad098a53aea207018a9e94e4 Mon Sep 17 00:00:00 2001 From: XGHeaven Date: Sun, 28 Apr 2019 17:37:00 +0800 Subject: [PATCH] test: add mustCall to test-dgram-connect-send-multi-buffer-copy.js PR-URL: https://github.com/nodejs/node/pull/27465 Reviewed-By: Yongsheng Zhang Reviewed-By: Ouyang Yadong Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Yuta Hiroto --- test/parallel/test-dgram-connect-send-multi-buffer-copy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-connect-send-multi-buffer-copy.js b/test/parallel/test-dgram-connect-send-multi-buffer-copy.js index 24de99a1e9d61d..ae8de70a6b4799 100644 --- a/test/parallel/test-dgram-connect-send-multi-buffer-copy.js +++ b/test/parallel/test-dgram-connect-send-multi-buffer-copy.js @@ -14,12 +14,12 @@ const onMessage = common.mustCall(common.mustCall((err, bytes) => { const buf1 = Buffer.alloc(256, 'x'); const buf2 = Buffer.alloc(256, 'y'); -client.on('listening', function() { +client.on('listening', common.mustCall(function() { const toSend = [buf1, buf2]; client.connect(client.address().port, common.mustCall(() => { client.send(toSend, onMessage); })); -}); +})); client.on('message', common.mustCall(function onMessage(buf, info) { const expected = Buffer.concat([buf1, buf2]);