Skip to content

Commit bbdbf8b

Browse files
Suraiya-HameedMylesBorins
authored andcommitted
test: replace fixturesDir with fixtures method
PR-URL: #15894 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent de82db7 commit bbdbf8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-byteswritten.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');
7-
const fs = require('fs');
88
const https = require('https');
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 body = 'hello world\n';

0 commit comments

Comments
 (0)