Skip to content

Commit 72f69f3

Browse files
cougarkhanMylesBorins
authored andcommitted
test: added fixtures module
PR-URL: #15980 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 5b5b5c0 commit 72f69f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-tls-client-getephemeralkeyinfo.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
const common = require('../common');
33
if (!common.hasCrypto)
44
common.skip('missing crypto');
5+
const fixtures = require('../common/fixtures');
56

67
const assert = require('assert');
78
const tls = require('tls');
89
const fs = require('fs');
910

10-
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`);
11-
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`);
11+
const key = fixtures.readKey('agent2-key.pem');
12+
const cert = fixtures.readKey('agent2-cert.pem');
1213

1314
let ntests = 0;
1415
let nsuccess = 0;
1516

1617
function loadDHParam(n) {
17-
let path = common.fixturesDir;
18+
let path = fixtures.fixturesDir;
1819
if (n !== 'error') path += '/keys';
1920
return fs.readFileSync(`${path}/dh${n}.pem`);
2021
}

0 commit comments

Comments
 (0)