Skip to content

Commit f9b2099

Browse files
t-k-gcjihrig
authored andcommitted
test: use fixtures module in test-https-pfx
PR-URL: #15895 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 6ee28b2 commit f9b2099

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/parallel/test-https-pfx.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
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');
29+
2730
const assert = require('assert');
28-
const fs = require('fs');
2931
const https = require('https');
3032

31-
const pfx = fs.readFileSync(`${common.fixturesDir}/test_cert.pfx`);
33+
const pfx = fixtures.readSync('test_cert.pfx');
3234

3335
const options = {
3436
host: '127.0.0.1',

0 commit comments

Comments
 (0)