From b5588d6deed5d071b8836badef6048d866c49094 Mon Sep 17 00:00:00 2001 From: jopann Date: Fri, 6 Oct 2017 17:52:28 +0000 Subject: [PATCH] test: replaced fixturesDir with common.fixtures PR-URL: https://github.com/nodejs/node/pull/15971 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- test/parallel/test-https-host-headers.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js index 1181d300bf..eb0e8b896a 100644 --- a/test/parallel/test-https-host-headers.js +++ b/test/parallel/test-https-host-headers.js @@ -1,15 +1,16 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); + if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); const https = require('https'); -const fs = require('fs'); const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; const httpsServer = https.createServer(options, reqHandler);