From 0f17c1cef0467cb67b233c26922fb533f5d7d900 Mon Sep 17 00:00:00 2001 From: Eli Itah Date: Fri, 12 Oct 2018 10:48:45 -0700 Subject: [PATCH] test: updating assertion and expect order in test-tls-client-verify.js PR-URL: https://github.com/nodejs/node/pull/23547 Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-tls-client-verify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-client-verify.js b/test/parallel/test-tls-client-verify.js index 3abcd3c16345ef..12d2514eed3a89 100644 --- a/test/parallel/test-tls-client-verify.js +++ b/test/parallel/test-tls-client-verify.js @@ -99,7 +99,7 @@ function testServers(index, servers, clientOptions, cb) { console.error(`expected: ${ok} authed: ${authorized}`); - assert.strictEqual(ok, authorized); + assert.strictEqual(authorized, ok); server.close(); })); @@ -108,7 +108,7 @@ function testServers(index, servers, clientOptions, cb) { }); client.on('end', common.mustCall(function() { - assert.strictEqual('hello world\n', b); + assert.strictEqual(b, 'hello world\n'); })); client.on('close', common.mustCall(function() {