mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: replace fixturesDir with fixtures.readKey
PR-URL: https://github.com/nodejs/node/pull/15948 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
1 parent
73231d95af
commit
4594315eae
1 file changed
+4
-4
@@ -5,12 +5,12 @@ if (!common.hasCrypto)
|
||||
|
||||
const assert = require('assert');
|
||||
const https = require('https');
|
||||
const fs = require('fs');
|
||||
const fixtures = require('../common/fixtures');
|
||||
|
||||
const options = {
|
||||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
|
||||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
|
||||
ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
|
||||
key: fixtures.readKey('agent1-key.pem'),
|
||||
cert: fixtures.readKey('agent1-cert.pem'),
|
||||
ca: fixtures.readKey('ca1-cert.pem')
|
||||
};
|
||||
|
||||
const server = https.Server(options, function(req, res) {
|
||||
|
||||
Reference in new issue
Block a user