Skip to content

Commit

Permalink
test: do not swallow OpenSSL support error
Browse files Browse the repository at this point in the history
PR-URL: #2042
Reviewed-By: Brendan Ashworth <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
  • Loading branch information
Trott committed Jun 25, 2015
1 parent 8350f3a commit 4d5089e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/parallel/test-crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d5089e

Please sign in to comment.