Skip to content

Commit

Permalink
test: use fixtures module in test-https-pfx
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
t-k-g authored and cjihrig committed Nov 6, 2017
1 parent 6ee28b2 commit f9b2099
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/parallel/test-https-pfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@

'use strict';
const common = require('../common');

if (!common.hasCrypto)
common.skip('missing crypto');

const fixtures = require('../common/fixtures');

const assert = require('assert');
const fs = require('fs');
const https = require('https');

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

const options = {
host: '127.0.0.1',
Expand Down

0 comments on commit f9b2099

Please sign in to comment.