Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
test: change fixturesDir to readSync and path
  • Loading branch information
frkat committed Oct 11, 2017
commit e2f4a270543200cbb459c5fcaf4365c29d4f7ed5
10 changes: 4 additions & 6 deletions test/parallel/test-https-foafssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ 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 https = require('https');

const options = {
key: fs.readFileSync(`${fixtures.fixturesDir}/agent.key`),
cert: fs.readFileSync(`${fixtures.fixturesDir}/agent.crt`),
key: fixtures.readSync('agent.key'),
cert: fixtures.readSync('agent.crt'),
requestCert: true,
rejectUnauthorized: false
};
Expand Down Expand Up @@ -71,8 +69,8 @@ server.listen(0, function() {
const args = ['s_client',
'-quiet',
'-connect', `127.0.0.1:${this.address().port}`,
'-cert', join(fixtures.fixturesDir, 'foafssl.crt'),
'-key', join(fixtures.fixturesDir, 'foafssl.key')];
'-cert', fixtures.path('foafssl.crt'),
'-key', fixtures.path('foafssl.key')];

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.

This can be:

'-cert', fixtures.path('foafssl.crt'),
'-key', fixtures.path('foafssl.key')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed, thanks 👍

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