Skip to content

Commit b02c352

Browse files
richardlauMylesBorins
authored andcommitted
test: fix test-tls-no-sslv3 for OpenSSL 3
OpenSSL 3 has changed the format of the error message for an unknown option to the CLI. Update the test to allow for the older and newer message formats. PR-URL: #38027 Refs: openssl/openssl#10774 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 960c6be commit b02c352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-tls-no-sslv3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ server.listen(0, '127.0.0.1', function() {
3838
server.on('tlsClientError', (err) => errors.push(err));
3939

4040
process.on('exit', function() {
41-
if (/unknown option -ssl3/.test(stderr)) {
41+
if (/[Uu]nknown option:? -ssl3/.test(stderr)) {
4242
common.printSkipMessage('`openssl s_client -ssl3` not supported.');
4343
} else {
4444
assert.strictEqual(errors.length, 1);

0 commit comments

Comments
 (0)