summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-stream.js
diff options
context:
space:
mode:
authorGibson Fahnestock <gib@uk.ibm.com>2017-01-08 15:36:25 +0000
committerGibson Fahnestock <gib@uk.ibm.com>2017-01-11 14:19:26 +0000
commit3d2aef3979cf7ac986908dbb9879216caec4a3ff (patch)
tree0566cf3150e4b9bcce3359814b3927c562bdbc42 /test/parallel/test-net-stream.js
parent81fef918d5a8a9aa297b78ade5e58d6caa3176e6 (diff)
downloadnode-new-3d2aef3979cf7ac986908dbb9879216caec4a3ff.tar.gz
test: s/assert.equal/assert.strictEqual/
Use assert.strictEqual instead of assert.equal in tests, manually convert types where necessary. PR-URL: https://github.com/nodejs/node/pull/10698 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Diffstat (limited to 'test/parallel/test-net-stream.js')
-rw-r--r--test/parallel/test-net-stream.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-net-stream.js b/test/parallel/test-net-stream.js
index 9d091bd66f..9e1ca670e1 100644
--- a/test/parallel/test-net-stream.js
+++ b/test/parallel/test-net-stream.js
@@ -12,11 +12,11 @@ s.server = new net.Server();
s.server.connections = 10;
s._server = s.server;
-assert.equal(10, s.server.connections);
+assert.strictEqual(10, s.server.connections);
s.destroy();
-assert.equal(9, s.server.connections);
+assert.strictEqual(9, s.server.connections);
s.destroy();
-assert.equal(9, s.server.connections);
+assert.strictEqual(9, s.server.connections);
const SIZE = 2E6;
const N = 10;
@@ -47,5 +47,5 @@ const server = net.createServer(function(socket) {
});
process.on('exit', function() {
- assert.equal(server.connections, 0);
+ assert.strictEqual(server.connections, 0);
});