Skip to content

Commit ed2377c

Browse files
mhdawsontargos
authored andcommitted
test: fix test-tls-client-auth test for OpenSSL32
Refs: #53382 Refs: #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: #54610 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent d2a7e45 commit ed2377c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ connect({
7979
}, function(err, pair, cleanup) {
8080
assert.strictEqual(pair.server.err.code,
8181
'ERR_SSL_PEER_DID_NOT_RETURN_A_CERTIFICATE');
82+
const expectedErr = common.hasOpenSSL(3, 2) ?
83+
'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE' : 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
8284
assert.strictEqual(pair.client.err.code,
83-
'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE');
85+
expectedErr);
8486
return cleanup();
8587
});
8688

0 commit comments

Comments
 (0)