summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-connect-paused-connection.js
diff options
context:
space:
mode:
authorsujunfei <sujunfei@bytedance.com>2019-04-28 17:05:52 +0800
committeroyyd <oyydoibh@gmail.com>2019-04-30 20:44:48 +0800
commit1001433e8627ef4c8878049ae7a8d68311144e2d (patch)
tree73084625bc44cee900a84ffef08b6baa7cfcd155 /test/parallel/test-net-connect-paused-connection.js
parentcb414306684ae531af09d84de54643afeb4d8b27 (diff)
downloadandroid-node-v8-1001433e8627ef4c8878049ae7a8d68311144e2d.tar.gz
android-node-v8-1001433e8627ef4c8878049ae7a8d68311144e2d.tar.bz2
android-node-v8-1001433e8627ef4c8878049ae7a8d68311144e2d.zip
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>
Diffstat (limited to 'test/parallel/test-net-connect-paused-connection.js')
-rw-r--r--test/parallel/test-net-connect-paused-connection.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-net-connect-paused-connection.js b/test/parallel/test-net-connect-paused-connection.js
index a53177ed4c..801bba1cf5 100644
--- a/test/parallel/test-net-connect-paused-connection.js
+++ b/test/parallel/test-net-connect-paused-connection.js
@@ -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();