Skip to content

Commit 38aeed2

Browse files
panvanodejs-github-bot
authored andcommitted
test: skip test-tls-error-stack when engines are unsupported
Signed-off-by: Filip Skokan <[email protected]> PR-URL: #62805 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent b2403f2 commit 38aeed2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/parallel/test-tls-error-stack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const tls = require('tls');
1111
assert.throws(() => {
1212
tls.createSecureContext({ clientCertEngine: 'x' });
1313
}, (err) => {
14+
if (err.code === 'ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED')
15+
common.skip('OpenSSL dropped engine support');
16+
1417
return err.name === 'Error' &&
1518
/could not load the shared library/.test(err.message) &&
1619
Array.isArray(err.opensslErrorStack) &&

0 commit comments

Comments
 (0)