From fe9cca2e0f9466f4504bf71df2cbcc2c938e3106 Mon Sep 17 00:00:00 2001 From: Scott J Beck Date: Fri, 6 Oct 2017 09:53:49 -0700 Subject: [PATCH] test: use fixtures module PR-URL: https://github.com/nodejs/node/pull/15843 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-https-localaddress-bind-error.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-localaddress-bind-error.js b/test/parallel/test-https-localaddress-bind-error.js index a22db1e9e61594..57e4dd054d78ce 100644 --- a/test/parallel/test-https-localaddress-bind-error.js +++ b/test/parallel/test-https-localaddress-bind-error.js @@ -25,12 +25,13 @@ if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); -const fs = require('fs'); const https = require('https'); +const fixtures = require('../common/fixtures'); + 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 invalidLocalAddress = '1.2.3.4';