Skip to content

Commit

Permalink
test: add mustCall to test-dgram-implicit-bind.js
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
yuanchenxi95 authored and targos committed Apr 29, 2019
1 parent c4d67f2 commit 4b9d109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-dgram-implicit-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 4b9d109

Please sign in to comment.