From b02c352ad6ebb1f1eceabb83c57591688ba6be01 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 1 Apr 2021 16:18:28 +0100 Subject: [PATCH] test: fix test-tls-no-sslv3 for OpenSSL 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/38027 Refs: https://github.com/openssl/openssl/pull/10774 Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen --- test/parallel/test-tls-no-sslv3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-no-sslv3.js b/test/parallel/test-tls-no-sslv3.js index 1acb1f93767404..4be58752e82bbb 100644 --- a/test/parallel/test-tls-no-sslv3.js +++ b/test/parallel/test-tls-no-sslv3.js @@ -38,7 +38,7 @@ server.listen(0, '127.0.0.1', function() { server.on('tlsClientError', (err) => errors.push(err)); process.on('exit', function() { - if (/unknown option -ssl3/.test(stderr)) { + if (/[Uu]nknown option:? -ssl3/.test(stderr)) { common.printSkipMessage('`openssl s_client -ssl3` not supported.'); } else { assert.strictEqual(errors.length, 1);