Skip to content

Commit 4b9d109

Browse files
yuanchenxi95targos
authored andcommitted
test: add mustCall to test-dgram-implicit-bind.js
PR-URL: #27452 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yorkie Liu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent c4d67f2 commit 4b9d109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dgram-implicit-bind.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ target.on('message', common.mustCall(function(buf) {
3636
}
3737
}, 2));
3838

39-
target.on('listening', function() {
39+
target.on('listening', common.mustCall(function() {
4040
// Second .send() call should not throw a bind error.
4141
const port = this.address().port;
4242
source.send(Buffer.from('abc'), 0, 3, port, '127.0.0.1');
4343
source.send(Buffer.from('def'), 0, 3, port, '127.0.0.1');
44-
});
44+
}));
4545

4646
target.bind(0);

0 commit comments

Comments
 (0)