mirror of https://github.com/nodejs/node.git
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
parent
6bbf9e07a1
commit
1f6c4ba61d
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue