Skip to content

Commit dba9981

Browse files
committed
test: skip test-tls-error-stack when engines unsupported
1 parent 1ee8989 commit dba9981

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ if (!common.hasCrypto)
88
const assert = require('assert');
99
const tls = require('tls');
1010

11+
try {
12+
tls.createSecureContext({ clientCertEngine: 'x' });
13+
} catch (err) {
14+
if (err.code === 'ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED')
15+
common.skip('OpenSSL built without engine support');
16+
}
17+
1118
assert.throws(() => {
1219
tls.createSecureContext({ clientCertEngine: 'x' });
1320
}, (err) => {

0 commit comments

Comments
 (0)