-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Replaced common.fixturesDir with common.fixtures (https-foafssl.js) #15856
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
|
||
'use strict'; | ||
const common = require('../common'); | ||
const fixtures = require('../common/fixtures'); | ||
if (!common.hasCrypto) | ||
common.skip('missing crypto'); | ||
|
||
|
@@ -34,8 +35,8 @@ const spawn = require('child_process').spawn; | |
const https = require('https'); | ||
|
||
const options = { | ||
key: fs.readFileSync(`${common.fixturesDir}/agent.key`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/agent.crt`), | ||
key: fs.readFileSync(`${fixtures.fixturesDir}/agent.key`), | ||
cert: fs.readFileSync(`${fixtures.fixturesDir}/agent.crt`), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be: key: fixtures.readSync('agent.key'),
cert: fixtures.readSync('agent.crt') There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, thanks 👍 |
||
requestCert: true, | ||
rejectUnauthorized: false | ||
}; | ||
|
@@ -70,8 +71,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', join(fixtures.fixturesDir, 'foafssl.crt'), | ||
'-key', join(fixtures.fixturesDir, 'foafssl.key')]; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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') There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: it would be great if you could move this after the
common.skip()
checks.