From bd8d4401ee596ec60dc5cc0a370fa8aa99d57ab5 Mon Sep 17 00:00:00 2001 From: Maurice Hayward Date: Fri, 6 Oct 2017 12:25:07 -0700 Subject: [PATCH] test: use fixtures module PR-URL: https://github.com/nodejs/node/pull/16034 Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Ruben Bridgewater --- test/parallel/test-https-unix-socket-self-signed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-unix-socket-self-signed.js b/test/parallel/test-https-unix-socket-self-signed.js index 6653cdd5f8de08..6e7cf827472a88 100644 --- a/test/parallel/test-https-unix-socket-self-signed.js +++ b/test/parallel/test-https-unix-socket-self-signed.js @@ -6,11 +6,11 @@ if (!common.hasCrypto) common.refreshTmpDir(); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const https = require('https'); const options = { - cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`), - key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`) + cert: fixtures.readSync('test_cert.pem'), + key: fixtures.readSync('test_key.pem') }; const server = https.createServer(options, common.mustCall((req, res) => {