Skip to content

Commit b9c8fd8

Browse files
CharlesWalljasnell
authored andcommitted
test: use fixtures in test-https-localaddress.js
PR-URL: #15811 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 70a19ae commit b9c8fd8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/parallel/test-https-localaddress.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ if (!common.hasCrypto)
2727
if (!common.hasMultiLocalhost())
2828
common.skip('platform-specific test.');
2929

30-
const fs = require('fs');
30+
const fixtures = require('../common/fixtures');
3131
const assert = require('assert');
3232
const https = require('https');
3333

3434
const options = {
35-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
36-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
35+
key: fixtures.readKey('agent1-key.pem'),
36+
cert: fixtures.readKey('agent1-cert.pem')
3737
};
3838

3939
const server = https.createServer(options, function(req, res) {

0 commit comments

Comments
 (0)