Skip to content

Commit 0f17c1c

Browse files
Eli ItahBridgeAR
Eli Itah
authored andcommitted
test: updating assertion and expect order in test-tls-client-verify.js
PR-URL: nodejs#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>
1 parent 08b1047 commit 0f17c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-tls-client-verify.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function testServers(index, servers, clientOptions, cb) {
9999

100100
console.error(`expected: ${ok} authed: ${authorized}`);
101101

102-
assert.strictEqual(ok, authorized);
102+
assert.strictEqual(authorized, ok);
103103
server.close();
104104
}));
105105

@@ -108,7 +108,7 @@ function testServers(index, servers, clientOptions, cb) {
108108
});
109109

110110
client.on('end', common.mustCall(function() {
111-
assert.strictEqual('hello world\n', b);
111+
assert.strictEqual(b, 'hello world\n');
112112
}));
113113

114114
client.on('close', common.mustCall(function() {

0 commit comments

Comments
 (0)