Skip to content

Commit 36fa169

Browse files
jpaulptrtargos
authored andcommitted
test: use common/fixtures in test-https-agent
PR-URL: #15941 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7a18e64 commit 36fa169

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-https-agent.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
2425
if (!common.hasCrypto)
2526
common.skip('missing crypto');
2627

28+
const fixtures = require('../common/fixtures');
2729
const assert = require('assert');
2830
const https = require('https');
29-
const fs = require('fs');
3031

3132
const options = {
32-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
33-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
33+
key: fixtures.readKey('agent1-key.pem'),
34+
cert: fixtures.readKey('agent1-cert.pem')
3435
};
3536

3637

0 commit comments

Comments
 (0)