summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-implicit-bind.js
diff options
context:
space:
mode:
authorChenxi Yuan <yuanchenxi95@gmail.com>2019-04-28 16:49:45 +0800
committeroyyd <oyydoibh@gmail.com>2019-04-29 14:20:00 +0800
commitc3d49332101abc68e64f13c96f4c165d4716d416 (patch)
tree824332b63dd63e052778b272ca8c0d24a7fa23fb /test/parallel/test-dgram-implicit-bind.js
parenteecf100049dd2d3ce6e4864a553cca43561a6a91 (diff)
downloadandroid-node-v8-c3d49332101abc68e64f13c96f4c165d4716d416.tar.gz
android-node-v8-c3d49332101abc68e64f13c96f4c165d4716d416.tar.bz2
android-node-v8-c3d49332101abc68e64f13c96f4c165d4716d416.zip
test: add mustCall to test-dgram-implicit-bind.js
PR-URL: https://github.com/nodejs/node/pull/27452 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'test/parallel/test-dgram-implicit-bind.js')
-rw-r--r--test/parallel/test-dgram-implicit-bind.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-dgram-implicit-bind.js b/test/parallel/test-dgram-implicit-bind.js
index 70e29c1f3a..b5aa2781ce 100644
--- a/test/parallel/test-dgram-implicit-bind.js
+++ b/test/parallel/test-dgram-implicit-bind.js
@@ -36,11 +36,11 @@ target.on('message', common.mustCall(function(buf) {
}
}, 2));
-target.on('listening', function() {
+target.on('listening', common.mustCall(function() {
// Second .send() call should not throw a bind error.
const port = this.address().port;
source.send(Buffer.from('abc'), 0, 3, port, '127.0.0.1');
source.send(Buffer.from('def'), 0, 3, port, '127.0.0.1');
-});
+}));
target.bind(0);