Skip to content

Commit

Permalink
test: reverse order of args in reconnect-error assert
Browse files Browse the repository at this point in the history
PR-URL: #23555
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
jackelin-herrera authored and MylesBorins committed Nov 29, 2018
1 parent 402cb65 commit f55a502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sequential/test-net-reconnect-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ c.on('connect', common.mustNotCall('client should not have connected'));

c.on('error', common.mustCall((e) => {
client_error_count++;
assert.strictEqual('ECONNREFUSED', e.code);
assert.strictEqual(e.code, 'ECONNREFUSED');
}, N + 1));

c.on('close', common.mustCall(() => {
Expand All @@ -42,6 +42,6 @@ c.on('close', common.mustCall(() => {
}, N + 1));

process.on('exit', function() {
assert.strictEqual(N + 1, disconnect_count);
assert.strictEqual(N + 1, client_error_count);
assert.strictEqual(disconnect_count, N + 1);
assert.strictEqual(client_error_count, N + 1);
});

0 comments on commit f55a502

Please sign in to comment.