mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: skip test-tls-error-stack when engines are unsupported
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/62805 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
b2403f2524
commit
38aeed28c3
1 file changed
+3
@@ -11,6 +11,9 @@ const tls = require('tls');
|
||||
assert.throws(() => {
|
||||
tls.createSecureContext({ clientCertEngine: 'x' });
|
||||
}, (err) => {
|
||||
if (err.code === 'ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED')
|
||||
common.skip('OpenSSL dropped engine support');
|
||||
|
||||
return err.name === 'Error' &&
|
||||
/could not load the shared library/.test(err.message) &&
|
||||
Array.isArray(err.opensslErrorStack) &&
|
||||
|
||||
Reference in new issue
Block a user