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