diff options
Diffstat (limited to 'test/parallel/test-tls-clientcertengine-unsupported.js')
-rw-r--r-- | test/parallel/test-tls-clientcertengine-unsupported.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-tls-clientcertengine-unsupported.js b/test/parallel/test-tls-clientcertengine-unsupported.js index aaa31b9630..0209a51fc7 100644 --- a/test/parallel/test-tls-clientcertengine-unsupported.js +++ b/test/parallel/test-tls-clientcertengine-unsupported.js @@ -14,15 +14,14 @@ binding.SecureContext = function() { return rv; }; -const assert = require('assert'); const tls = require('tls'); { - assert.throws( + common.expectsError( () => { tls.createSecureContext({ clientCertEngine: 'Cannonmouth' }); }, - common.expectsError({ + { code: 'ERR_CRYPTO_CUSTOM_ENGINE_NOT_SUPPORTED', message: 'Custom engines not supported by this OpenSSL' - }) + } ); } |