test: add mustCall for parallel/test-net-connect-paused-connection

Add common.mustCall test on net.createServer callback and listen
callback in the parallel/test-net-connect-paused-connection

remove the mustCall of net.createServer callback

PR-URL: https://github.com/nodejs/node/pull/27463
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: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
This commit is contained in:
sujunfei authored and Michaël Zasso committed 2019-04-30 17:47:26 +02:00
1 parent 0e4f8788eb
commit 3711684ccf
1 file changed
+2 -2
@@ -26,8 +26,8 @@ const net = require('net');
net.createServer(function(conn) {
conn.unref();
}).listen(0, function() {
}).listen(0, common.mustCall(function() {
net.connect(this.address().port, 'localhost').pause();
setTimeout(common.mustNotCall('expected to exit'), 1000).unref();
}).unref();
})).unref();