Skip to content

Commit 05286b6

Browse files
jopannMylesBorins
authored andcommitted
test: replaced fixturesDir with common.fixtures
PR-URL: #15971 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 683c5fa commit 05286b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-https-host-headers.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
4+
35
if (!common.hasCrypto)
46
common.skip('missing crypto');
57

68
const assert = require('assert');
79
const https = require('https');
8-
const fs = require('fs');
910

1011
const options = {
11-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
12+
key: fixtures.readKey('agent1-key.pem'),
13+
cert: fixtures.readKey('agent1-cert.pem')
1314
};
1415
const httpsServer = https.createServer(options, reqHandler);
1516

0 commit comments

Comments
 (0)