From 9bc7d839affb92949ea079b4fc6475064163c4d0 Mon Sep 17 00:00:00 2001 From: Justin denBroeder Date: Fri, 12 Oct 2018 10:30:25 -0700 Subject: [PATCH] test: assert.strictEqual parameters ordered correctly The assert.strictEqual function should have the actual value first and the expected value second to enable easier debugging of AssertionErrors. PR-URL: https://github.com/nodejs/node/pull/23538 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- test/parallel/test-tls-securepair-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-securepair-server.js b/test/parallel/test-tls-securepair-server.js index 994e037c05a5e5..92234fb4108fc5 100644 --- a/test/parallel/test-tls-securepair-server.js +++ b/test/parallel/test-tls-securepair-server.js @@ -137,7 +137,7 @@ server.listen(0, common.mustCall(function() { client.stdout.pipe(process.stdout, { end: false }); client.on('exit', common.mustCall(function(code) { - assert.strictEqual(0, code); + assert.strictEqual(code, 0); server.close(); })); }));