From 64aded33ef310ca87e5566239ab2dbd12b1899b9 Mon Sep 17 00:00:00 2001
From: Scott J Beck <scottjbeck@gmail.com>
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 <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
---
 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';