Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
test: fix arguments order
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#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>
  • Loading branch information
franher authored and Trott committed Nov 8, 2018
1 parent 6bbf9e0 commit 1f6c4ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-net-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -69,5 +69,5 @@ const server = net.createServer(function(socket) {
});

process.on('exit', function() {
assert.strictEqual(0, server.connections);
assert.strictEqual(server.connections, 0);
});

0 comments on commit 1f6c4ba

Please sign in to comment.