summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-server-close.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-net-server-close.js')
-rw-r--r--test/parallel/test-net-server-close.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-net-server-close.js b/test/parallel/test-net-server-close.js
index c44dc230c9..28519fdafd 100644
--- a/test/parallel/test-net-server-close.js
+++ b/test/parallel/test-net-server-close.js
@@ -7,12 +7,12 @@ const events = [];
const sockets = [];
process.on('exit', function() {
- assert.equal(server.connections, 0);
- assert.equal(events.length, 3);
+ assert.strictEqual(server.connections, 0);
+ assert.strictEqual(events.length, 3);
// Expect to see one server event and two client events. The order of the
// events is undefined because they arrive on the same event loop tick.
- assert.equal(events.join(' ').match(/server/g).length, 1);
- assert.equal(events.join(' ').match(/client/g).length, 2);
+ assert.strictEqual(events.join(' ').match(/server/g).length, 1);
+ assert.strictEqual(events.join(' ').match(/client/g).length, 2);
});
let server = net.createServer(function(c) {