Skip to content

Commit 1001433

Browse files
sujunfeioyyd
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 <[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: Rich Trott <[email protected]> Reviewed-By: Ouyang Yadong <[email protected]>
1 parent cb41430 commit 1001433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)