From f8496553df5e4f741f29ed64f6fe1b2a6b477003 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) => {