summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-set-timeout-server.js
diff options
context:
space:
mode:
authorBob Clewell <bob@punkave.com>2017-10-06 09:42:42 -0700
committerJames M Snell <jasnell@gmail.com>2017-10-12 18:32:32 -0700
commit0e1455b90959024ae86207eb0bb67d0ab5f264cc (patch)
treebf5316241b11d796c910340f363f258d4eeb9064 /test/parallel/test-https-set-timeout-server.js
parentc4231aaad3dd2de1d73dbd34856028ab4b4605b9 (diff)
downloadandroid-node-v8-0e1455b90959024ae86207eb0bb67d0ab5f264cc.tar.gz
android-node-v8-0e1455b90959024ae86207eb0bb67d0ab5f264cc.tar.bz2
android-node-v8-0e1455b90959024ae86207eb0bb67d0ab5f264cc.zip
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 <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-https-set-timeout-server.js')
-rw-r--r--test/parallel/test-https-set-timeout-server.js6
1 files 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) {