From 4b9d109518a2deada68d25bfbed5707dc124b2f1 Mon Sep 17 00:00:00 2001
From: Chenxi Yuan <yuanchenxi95@gmail.com>
Date: Sun, 28 Apr 2019 16:49:45 +0800
Subject: [PATCH] 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>
---
 test/parallel/test-dgram-implicit-bind.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/parallel/test-dgram-implicit-bind.js b/test/parallel/test-dgram-implicit-bind.js
index 70e29c1f3ab95f..b5aa2781ce12a5 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);