Skip to content

Commit c52fe67

Browse files
t-k-gTrott
authored andcommitted
test: use fixtures module in test-https-pfx
PR-URL: nodejs#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 7489ee8 commit c52fe67

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)