mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: fix test-tls-client-auth test for OpenSSL32
Refs: https://github.com/nodejs/node/issues/53382 Refs: https://github.com/nodejs/node/pull/53384 Same change as in 53384 where OpenSSL32 returns a slightly different error but for a different test. Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/54610 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
2bfc9e467c
commit
e9cd4766e3
@ -79,8 +79,10 @@ connect({
|
||||
}, function(err, pair, cleanup) {
|
||||
assert.strictEqual(pair.server.err.code,
|
||||
'ERR_SSL_PEER_DID_NOT_RETURN_A_CERTIFICATE');
|
||||
const expectedErr = common.hasOpenSSL(3, 2) ?
|
||||
'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
|
||||
assert.strictEqual(pair.client.err.code,
|
||||
'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE');
|
||||
expectedErr);
|
||||
return cleanup();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user