Skip to content

Commit bf8f1d3

Browse files
EthanRBrownTrott
authored andcommitted
test: fs.readFileSync -> fixtures.readKey
PR-URL: nodejs#16030 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7e4893d commit bf8f1d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-timeout-server-2.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
const common = require('../common');
2525
if (!common.hasCrypto)
2626
common.skip('missing crypto');
27+
const fixtures = require('../common/fixtures');
2728

2829
const assert = require('assert');
2930
const https = require('https');
3031
const tls = require('tls');
31-
const fs = require('fs');
3232

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

3838
const server = https.createServer(options, common.mustNotCall());

0 commit comments

Comments
 (0)