Skip to content

Commit

Permalink
test: use fixtures module in tls-handshake-error
Browse files Browse the repository at this point in the history
PR-URL: #15939
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Mark Walker authored and gibfahn committed Oct 31, 2017
1 parent 977fe22 commit aaacddb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/parallel/test-tls-handshake-error.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
'use strict';

const common = require('../common');

if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const tls = require('tls');
const fs = require('fs');

const fixtures = require('../common/fixtures');

const server = tls.createServer({
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem'),
rejectUnauthorized: true
}, function(c) {
}).listen(0, common.mustCall(function() {
Expand Down

0 comments on commit aaacddb

Please sign in to comment.