diff options
author | XGHeaven <xgheaven@gmail.com> | 2019-04-28 17:37:00 +0800 |
---|---|---|
committer | oyyd <oyydoibh@gmail.com> | 2019-04-30 10:14:16 +0800 |
commit | 92ab466b74c37a22ea8e378b144391789d2c920c (patch) | |
tree | 124ebc3f2d1633b648c82c9409406135c9c017df /test/parallel/test-dgram-connect-send-multi-buffer-copy.js | |
parent | a565853dddcf03cd33cc826cda5452fe75144055 (diff) | |
download | android-node-v8-92ab466b74c37a22ea8e378b144391789d2c920c.tar.gz android-node-v8-92ab466b74c37a22ea8e378b144391789d2c920c.tar.bz2 android-node-v8-92ab466b74c37a22ea8e378b144391789d2c920c.zip |
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 <zyszys98@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Diffstat (limited to 'test/parallel/test-dgram-connect-send-multi-buffer-copy.js')
-rw-r--r-- | test/parallel/test-dgram-connect-send-multi-buffer-copy.js | 4 |
1 files 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 24de99a1e9..ae8de70a6b 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]); |