diff options
author | Ken Takagi <tkg214@gmail.com> | 2017-10-06 10:11:23 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-31 20:54:50 -0700 |
commit | c52fe67162862e96ba9d7b600f7b6bbe9ba74efd (patch) | |
tree | ac558b370731472d15b637572ea3a8443f0599fe /test/parallel/test-https-pfx.js | |
parent | 7489ee84fe992fb6e8c1d77e9b8801f5d783cdfe (diff) | |
download | android-node-v8-c52fe67162862e96ba9d7b600f7b6bbe9ba74efd.tar.gz android-node-v8-c52fe67162862e96ba9d7b600f7b6bbe9ba74efd.tar.bz2 android-node-v8-c52fe67162862e96ba9d7b600f7b6bbe9ba74efd.zip |
test: use fixtures module in test-https-pfx
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-https-pfx.js')
-rw-r--r-- | test/parallel/test-https-pfx.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parallel/test-https-pfx.js b/test/parallel/test-https-pfx.js index d7561f7424..7cf23a7dfa 100644 --- a/test/parallel/test-https-pfx.js +++ b/test/parallel/test-https-pfx.js @@ -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', |