test: reverse order of args in reconnect-error assert

PR-URL: https://github.com/nodejs/node/pull/23555
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
pull/23548/merge
Jackelin Herrera 2018-10-12 10:14:18 -07:00 committed by Ruben Bridgewater
parent 7e2edc5f55
commit f77f693942
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 3 additions and 3 deletions

View File

@ -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(() => {
@ -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);
});