From 40b8259e449661c85f8cb772c9444a2c1d7bb11c Mon Sep 17 00:00:00 2001 From: Ken Takagi Date: Fri, 6 Oct 2017 10:11:23 -0700 Subject: [PATCH] test: replace common.fixturesDir with common.fixtures --- 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',