From 239d29f2d374b9e6469d24f2080662c7dd68c8c1 Mon Sep 17 00:00:00 2001 From: Bob Clewell Date: Fri, 6 Oct 2017 09:42:42 -0700 Subject: [PATCH] test: use fixtures in test-https-set-timeout-server Task to replace the common.fixturesDir with the usage of the common.fixtures module. At Node.js Interactive. First PR to Node.js. Yay! PR-URL: https://github.com/nodejs/node/pull/15886 Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- test/parallel/test-https-set-timeout-server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-set-timeout-server.js b/test/parallel/test-https-set-timeout-server.js index b5cc8a6f5a..e353f0afde 100644 --- a/test/parallel/test-https-set-timeout-server.js +++ b/test/parallel/test-https-set-timeout-server.js @@ -26,7 +26,7 @@ if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const https = require('https'); const http = require('http'); const tls = require('tls'); @@ -34,8 +34,8 @@ const tls = require('tls'); const tests = []; const serverOptions = { - 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') }; function test(fn) {