Skip to content

Commit

Permalink
test: fix arguments order
Browse files Browse the repository at this point in the history
PR-URL: #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 MylesBorins committed Dec 26, 2018
1 parent 74f1dad commit c37b319
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 c37b319

Please sign in to comment.