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: #27459
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Yorkie Liu <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
xuqinggang authored and targos committed Apr 30, 2019
1 parent 8e876e6 commit eeab007
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 eeab007

Please sign in to comment.