From 541866ea867d5cadeee4f01185da08fcceb28658 Mon Sep 17 00:00:00 2001 From: Mike Fleming Date: Fri, 6 Oct 2017 09:47:12 -0700 Subject: [PATCH] test: replaces fixturesDir with fixtures This commit updates the common.fixturesDir method in the https-timeout test. PR-URL: https://github.com/nodejs/node/pull/15835 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca --- test/parallel/test-https-timeout.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-timeout.js b/test/parallel/test-https-timeout.js index eb5a17477c57fc..a0d3e0608a7c0f 100644 --- a/test/parallel/test-https-timeout.js +++ b/test/parallel/test-https-timeout.js @@ -4,13 +4,12 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); 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') }; // a server that never replies