From 56e862a3b41dbb05e6aa0f38147532a0f6a508e7 Mon Sep 17 00:00:00 2001 From: David Jiang Date: Fri, 12 Oct 2018 11:33:29 -0700 Subject: [PATCH] test: fix assert equal order of arguments PR-URL: https://github.com/nodejs/node/pull/23602 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-net-connect-handle-econnrefused.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-connect-handle-econnrefused.js b/test/parallel/test-net-connect-handle-econnrefused.js index 3c7310b4752d72..c1ccfc23384caf 100644 --- a/test/parallel/test-net-connect-handle-econnrefused.js +++ b/test/parallel/test-net-connect-handle-econnrefused.js @@ -31,6 +31,6 @@ server.close(common.mustCall(() => { const c = net.createConnection(port); c.on('connect', common.mustNotCall()); c.on('error', common.mustCall((e) => { - assert.strictEqual('ECONNREFUSED', e.code); + assert.strictEqual(e.code, 'ECONNREFUSED'); })); }));