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:
parent
08b1047ef1
commit
0f17c1cef0
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user