Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: replace common.fixturesDir with usage of the common.fixtures in
test-https-close
  • Loading branch information
alodela committed Oct 6, 2017
commit f06f6b766f64f3245361ca2d786b61ba5da204a2
5 changes: 3 additions & 2 deletions test/parallel/test-https-close.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: would you mind moving this after the common.hasCrypto check?

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

const fs = require('fs');
const https = require('https');

const options = {
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')
};

const connections = {};
Expand Down