Skip to content

Commit f06f6b7

Browse files
committed
test: replace common.fixturesDir with usage of the common.fixtures in
test-https-close
1 parent 0c49038 commit f06f6b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-https-close.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +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 fs = require('fs');
78
const https = require('https');
89

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

1415
const connections = {};

0 commit comments

Comments
 (0)