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 <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
Eli Itah 2018-10-12 10:48:45 -07:00 committed by Ruben Bridgewater
parent 08b1047ef1
commit 0f17c1cef0
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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() {