Skip to content

Commit 3711684

Browse files
sujunfeitargos
sujunfei
authored andcommitted
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: #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>
1 parent 0e4f878 commit 3711684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-connect-paused-connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const net = require('net');
2626

2727
net.createServer(function(conn) {
2828
conn.unref();
29-
}).listen(0, function() {
29+
}).listen(0, common.mustCall(function() {
3030
net.connect(this.address().port, 'localhost').pause();
3131

3232
setTimeout(common.mustNotCall('expected to exit'), 1000).unref();
33-
}).unref();
33+
})).unref();

0 commit comments

Comments
 (0)