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 <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>
  • Loading branch information
t-k-g authored and MylesBorins committed Nov 14, 2017
1 parent 3e6da45 commit 9416dab
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
@@ -1,13 +1,15 @@
'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 9416dab

Please sign in to comment.