From fc2f104efeb6c08798d91a10cf180285fc07a76f Mon Sep 17 00:00:00 2001 From: Jackelin Herrera Date: Fri, 12 Oct 2018 10:14:18 -0700 Subject: [PATCH] test: reverse order of args in reconnect-error assert PR-URL: https://github.com/nodejs/node/pull/23555 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat --- test/sequential/test-net-reconnect-error.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sequential/test-net-reconnect-error.js b/test/sequential/test-net-reconnect-error.js index 128feffc933ae3..e16d567c0ad1bb 100644 --- a/test/sequential/test-net-reconnect-error.js +++ b/test/sequential/test-net-reconnect-error.js @@ -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); });