Skip to content

Commit

Permalink
test: add mustCall for parallel/test-net-connect-paused-connection
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sujunfei committed Apr 30, 2019
1 parent 757f3f8 commit cb74830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-net-connect-paused-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit cb74830

Please sign in to comment.