diff options
author | Lam Chan <lchan@xogrp.com> | 2017-10-06 10:04:46 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-10-15 15:12:45 -0700 |
commit | bb9ed92f0a4ada8c0ed297c4b8042c853481fb3c (patch) | |
tree | da6cc39caee5419e4db2d8861b296f7df6dce315 /test/parallel/test-https-socket-options.js | |
parent | 3cc725d9c6b8ed3834abd9c6a7ef44a89d02d012 (diff) | |
download | android-node-v8-bb9ed92f0a4ada8c0ed297c4b8042c853481fb3c.tar.gz android-node-v8-bb9ed92f0a4ada8c0ed297c4b8042c853481fb3c.tar.bz2 android-node-v8-bb9ed92f0a4ada8c0ed297c4b8042c853481fb3c.zip |
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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-https-socket-options.js')
-rw-r--r-- | test/parallel/test-https-socket-options.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-https-socket-options.js b/test/parallel/test-https-socket-options.js index 2a6fc8f84f..2ba1b88368 100644 --- a/test/parallel/test-https-socket-options.js +++ b/test/parallel/test-https-socket-options.js @@ -25,13 +25,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'; |