From d5be5a026db18167aa15423bc27f4c7f4aeb8c51 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 --- 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); });