test: fix assertion order test-tls-server-verify
PR-URL: https://github.com/nodejs/node/pull/23549 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
e096df3743
commit
b2e133aeb7
@ -226,14 +226,14 @@ function runClient(prefix, port, options, cb) {
|
||||
client.on('exit', function(code) {
|
||||
if (options.shouldReject) {
|
||||
assert.strictEqual(
|
||||
true, rejected,
|
||||
rejected, true,
|
||||
`${prefix}${options.name} NOT rejected, but should have been`);
|
||||
} else {
|
||||
assert.strictEqual(
|
||||
false, rejected,
|
||||
rejected, false,
|
||||
`${prefix}${options.name} rejected, but should NOT have been`);
|
||||
assert.strictEqual(
|
||||
options.shouldAuth, authed,
|
||||
authed, options.shouldAuth,
|
||||
`${prefix}${options.name} authed is ${authed} but should have been ${
|
||||
options.shouldAuth}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user