test: do not swallow OpenSSL support error
PR-URL: https://github.com/nodejs/io.js/pull/2042 Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
This commit is contained in:
parent
8350f3a3a2
commit
4d5089e181
@ -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 certPem = fs.readFileSync(common.fixturesDir + '/test_cert.pem', 'ascii');
|
||||||
var certPfx = fs.readFileSync(common.fixturesDir + '/test_cert.pfx');
|
var certPfx = fs.readFileSync(common.fixturesDir + '/test_cert.pfx');
|
||||||
var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii');
|
var keyPem = fs.readFileSync(common.fixturesDir + '/test_key.pem', 'ascii');
|
||||||
|
var tls = require('tls');
|
||||||
|
|
||||||
// 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 'this' safety
|
// 'this' safety
|
||||||
// https://github.com/joyent/node/issues/6690
|
// https://github.com/joyent/node/issues/6690
|
||||||
|
Loading…
x
Reference in New Issue
Block a user