Skip to content

Commit

Permalink
test: use common fixtures module
Browse files Browse the repository at this point in the history
Replace use of fixturesDir with fixtures.readSync and fixtures.path.

PR-URL: #15856
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
frkat authored and MylesBorins committed Nov 28, 2017
1 parent 6f1ba79 commit c9c37d0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-https-foafssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ if (!common.opensslCli)
common.skip('node compiled without OpenSSL CLI.');

const assert = require('assert');
const join = require('path').join;
const fs = require('fs');
const spawn = require('child_process').spawn;
const fixtures = require('../common/fixtures');
const https = require('https');
const spawn = require('child_process').spawn;

const options = {
key: fs.readFileSync(`${common.fixturesDir}/agent.key`),
cert: fs.readFileSync(`${common.fixturesDir}/agent.crt`),
requestCert: true
key: fixtures.readSync('agent.key'),
cert: fixtures.readSync('agent.crt'),
requestCert: true,
rejectUnauthorized: false
};

const modulus = 'A6F44A9C25791431214F5C87AF9E040177A8BB89AC803F7E09BBC3A5519F' +
Expand Down Expand Up @@ -48,8 +48,8 @@ server.listen(0, function() {
const args = ['s_client',
'-quiet',
'-connect', `127.0.0.1:${this.address().port}`,
'-cert', join(common.fixturesDir, 'foafssl.crt'),
'-key', join(common.fixturesDir, 'foafssl.key')];
'-cert', fixtures.path('foafssl.crt'),
'-key', fixtures.path('foafssl.key')];

// for the performance and stability issue in s_client on Windows
if (common.isWindows)
Expand Down

0 comments on commit c9c37d0

Please sign in to comment.