From 2ab826c49799e5ec89fd0423e88df7e9e00ef4fb Mon Sep 17 00:00:00 2001 From: Lam Chan Date: Fri, 6 Oct 2017 10:04:46 -0700 Subject: [PATCH] test: replaced fs.readSync with fixtures.readSync NINA 2017 Code and Learn session for first time contributors. This touched test/parallel/test-https-socket-options.js to replace common.fixturesDir PR-URL: https://github.com/nodejs/node/pull/15882 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil --- test/parallel/test-https-socket-options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-socket-options.js b/test/parallel/test-https-socket-options.js index 0e3d386ea12f41..f43ad6c3726ab3 100644 --- a/test/parallel/test-https-socket-options.js +++ b/test/parallel/test-https-socket-options.js @@ -4,13 +4,13 @@ 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 http = require('http'); 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 body = 'hello world\n';