Skip to content

Commit eeab007

Browse files
xuqinggangtargos
xuqinggang
authored andcommittedApr 30, 2019
test: add mustCall to test-net-after-close test
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]>
1 parent 8e876e6 commit eeab007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-net-after-close.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const common = require('../common');
2424
const assert = require('assert');
2525
const net = require('net');
2626

27-
const server = net.createServer(function(s) {
27+
const server = net.createServer(common.mustCall(function(s) {
2828
console.error('SERVER: got connection');
2929
s.end();
30-
});
30+
}));
3131

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

0 commit comments

Comments
 (0)
Please sign in to comment.