Skip to content

Commit 909e587

Browse files
rhalldearnMylesBorins
rhalldearn
authored andcommitted
test: replaced common.fixturesDir with readKey
PR-URL: #15952 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
1 parent 544cbd7 commit 909e587

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-agent-sni.js

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

67
const assert = require('assert');
78
const https = require('https');
8-
const fs = require('fs');
99

1010
const options = {
11-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
11+
key: fixtures.readKey('agent1-key.pem'),
12+
cert: fixtures.readKey('agent1-cert.pem')
1313
};
1414

1515
const TOTAL = 4;

0 commit comments

Comments
 (0)