test: fix arguments order

PR-URL: https://github.com/nodejs/node/pull/24131
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
pull/24247/head
Fran Herrero 2018-11-06 14:30:10 +00:00 committed by Rich Trott
parent 6bbf9e07a1
commit 1f6c4ba61d
1 changed files with 4 additions and 4 deletions

View File

@ -34,11 +34,11 @@ s.server = new net.Server();
s.server.connections = 10;
s._server = s.server;
assert.strictEqual(10, s.server.connections);
assert.strictEqual(s.server.connections, 10);
s.destroy();
assert.strictEqual(9, s.server.connections);
assert.strictEqual(s.server.connections, 9);
s.destroy();
assert.strictEqual(9, s.server.connections);
assert.strictEqual(s.server.connections, 9);
const SIZE = 2E6;
const N = 10;
@ -69,5 +69,5 @@ const server = net.createServer(function(socket) {
});
process.on('exit', function() {
assert.strictEqual(0, server.connections);
assert.strictEqual(server.connections, 0);
});