summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-connect-paused-connection.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-07-14 11:26:35 -0400
committercjihrig <cjihrig@gmail.com>2016-07-15 15:50:01 -0400
commit6510eb5ddc802dcd25713c2b3cbb82711c94d075 (patch)
tree9f22bb1adff8ef2474267297873f03f1c3704d49 /test/parallel/test-net-connect-paused-connection.js
parent28d9485c25a0ddeb8817525e25d4c7bb1ee5013b (diff)
downloadandroid-node-v8-6510eb5ddc802dcd25713c2b3cbb82711c94d075.tar.gz
android-node-v8-6510eb5ddc802dcd25713c2b3cbb82711c94d075.tar.bz2
android-node-v8-6510eb5ddc802dcd25713c2b3cbb82711c94d075.zip
test: s/assert.fail/common.fail as appropriate
Many tests use assert.fail(null, null, msg) where it would be simpler to use common.fail(msg). This is largely because common.fail() is fairly new. This commit makes the replacement when applicable. PR-URL: https://github.com/nodejs/node/pull/7735 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/parallel/test-net-connect-paused-connection.js')
-rw-r--r--test/parallel/test-net-connect-paused-connection.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-net-connect-paused-connection.js b/test/parallel/test-net-connect-paused-connection.js
index 857b287b62..8c0e1c93cf 100644
--- a/test/parallel/test-net-connect-paused-connection.js
+++ b/test/parallel/test-net-connect-paused-connection.js
@@ -1,6 +1,5 @@
'use strict';
-require('../common');
-var assert = require('assert');
+const common = require('../common');
var net = require('net');
@@ -10,6 +9,6 @@ net.createServer(function(conn) {
net.connect(this.address().port, 'localhost').pause();
setTimeout(function() {
- assert.fail(null, null, 'expected to exit');
+ common.fail('expected to exit');
}, 1000).unref();
}).unref();