Skip to content

Commit

Permalink
test: adding common.mustCall() to callback
Browse files Browse the repository at this point in the history
Adding the common.mustCall() to the callback as the test documentation
explains it.
  • Loading branch information
orafaelfragoso committed Apr 15, 2017
1 parent 7ddb093 commit bab6ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-cluster-dgram-reuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function close() {
// Creates the first socket
const socket = dgram.createSocket({ type: 'udp4', reuseAddr: true });
// Let the OS assign a random port to the first socket
socket.bind(0, function() {
socket.bind(0, common.mustCall(function() {
// Creates the second socket using the same port from the previous one
dgram.createSocket({ type: 'udp4', reuseAddr: true })
.bind(socket.address().port, next);
// Call next for the first socket
next.call(this);
});
}));

0 comments on commit bab6ccc

Please sign in to comment.