◐ Shell
clean mode source ↗

test: skip test-tls-error-stack when engines are unsupported · nodejs/node@3aa9938

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) &&