From f9b2099d510e5121540fba54a0a7715d3a24aea0 Mon Sep 17 00:00:00 2001 From: Ken Takagi Date: Fri, 6 Oct 2017 10:11:23 -0700 Subject: [PATCH] test: use fixtures module in test-https-pfx PR-URL: https://github.com/nodejs/node/pull/15895 Reviewed-By: Daijiro Wachi Reviewed-By: Gireesh Punathil Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig --- test/parallel/test-https-pfx.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-pfx.js b/test/parallel/test-https-pfx.js index d7561f74246286..7cf23a7dfa17f4 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',