Skip to content

Commit 4d5089e

Browse files
committed
test: do not swallow OpenSSL support error
PR-URL: #2042 Reviewed-By: Brendan Ashworth <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 8350f3a commit 4d5089e

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/parallel/test-crypto.js

+1-14
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@ var caPem = fs.readFileSync(common.fixturesDir + '/test_ca.pem', 'ascii');
1818
var certPem = fs.readFileSync(common.fixturesDir + '/test_cert.pem', 'ascii');
1919
var certPfx = fs.readFileSync(common.fixturesDir + '/test_cert.pfx');
2020
var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii');
21-
22-
23-
// TODO(indunty): move to a separate test eventually
24-
try {
25-
var tls = require('tls');
26-
var context = tls.createSecureContext({
27-
key: keyPem,
28-
cert: certPem,
29-
ca: caPem
30-
});
31-
} catch (e) {
32-
console.log('Not compiled with OPENSSL support.');
33-
process.exit();
34-
}
21+
var tls = require('tls');
3522

3623
// 'this' safety
3724
// https://github.com/joyent/node/issues/6690

0 commit comments

Comments
 (0)