Skip to content

Commit 9416dab

Browse files
t-k-gMylesBorins
authored andcommitted
test: use fixtures module in test-https-pfx
PR-URL: #15895 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 3e6da45 commit 9416dab

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
@@ -1,13 +1,15 @@
11
'use strict';
22
const common = require('../common');
3+
34
if (!common.hasCrypto)
45
common.skip('missing crypto');
56

7+
const fixtures = require('../common/fixtures');
8+
69
const assert = require('assert');
7-
const fs = require('fs');
810
const https = require('https');
911

10-
const pfx = fs.readFileSync(`${common.fixturesDir}/test_cert.pfx`);
12+
const pfx = fixtures.readSync('test_cert.pfx');
1113

1214
const options = {
1315
host: '127.0.0.1',

0 commit comments

Comments
 (0)