From 4d5089e1817edf8b0125d8f91b5a8fc32d13263b Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 23 Jun 2015 11:26:56 -0700 Subject: [PATCH] test: do not swallow OpenSSL support error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/io.js/pull/2042 Reviewed-By: Brendan Ashworth Reviewed-By: Johan Bergström --- test/parallel/test-crypto.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/test/parallel/test-crypto.js b/test/parallel/test-crypto.js index 2555cf448a6..47f0430f167 100644 --- a/test/parallel/test-crypto.js +++ b/test/parallel/test-crypto.js @@ -18,20 +18,7 @@ var caPem = fs.readFileSync(common.fixturesDir + '/test_ca.pem', 'ascii'); var certPem = fs.readFileSync(common.fixturesDir + '/test_cert.pem', 'ascii'); var certPfx = fs.readFileSync(common.fixturesDir + '/test_cert.pfx'); var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii'); - - -// TODO(indunty): move to a separate test eventually -try { - var tls = require('tls'); - var context = tls.createSecureContext({ - key: keyPem, - cert: certPem, - ca: caPem - }); -} catch (e) { - console.log('Not compiled with OPENSSL support.'); - process.exit(); -} +var tls = require('tls'); // 'this' safety // https://github.com/joyent/node/issues/6690