From 095bd569aef4fec433ddb26e681eaabff1f7fd10 Mon Sep 17 00:00:00 2001 From: xuqinggang Date: Sun, 28 Apr 2019 16:54:17 +0800 Subject: [PATCH] test: add mustCall to test-net-after-close test PR-URL: https://github.com/nodejs/node/pull/27459 Reviewed-By: Yongsheng Zhang Reviewed-By: Weijia Wang Reviewed-By: Yorkie Liu Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Anto Aravinth Reviewed-By: Rich Trott --- test/parallel/test-net-after-close.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-net-after-close.js b/test/parallel/test-net-after-close.js index 0750ba0f435512..641e61bd04c5d0 100644 --- a/test/parallel/test-net-after-close.js +++ b/test/parallel/test-net-after-close.js @@ -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);