Skip to content

Commit

Permalink
test: updating assertion and expect order in test-tls-client-verify.js
Browse files Browse the repository at this point in the history
PR-URL: #23547
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
Eli Itah authored and jasnell committed Oct 17, 2018
1 parent 47b7f2a commit c9afea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-tls-client-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));

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

0 comments on commit c9afea9

Please sign in to comment.