Skip to content

Commit

Permalink
test: add mustCall to test-net-after-close test
Browse files Browse the repository at this point in the history
PR-URL: nodejs#27459
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.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: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
xuqinggang authored and Trott committed Apr 29, 2019
1 parent 6bfde6a commit 095bd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-net-after-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const common = require('../common');
const assert = require('assert');
const net = require('net');

const server = net.createServer(function(s) {
const server = net.createServer(common.mustCall(function(s) {
console.error('SERVER: got connection');
s.end();
});
}));

server.listen(0, common.mustCall(function() {
const c = net.createConnection(this.address().port);
Expand Down

0 comments on commit 095bd56

Please sign in to comment.