summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-agent-sockets-leak.js
diff options
context:
space:
mode:
authorJonathan Eskew <eskewj@amazon.com>2017-10-06 10:00:18 -0700
committerGireesh Punathil <gpunathi@in.ibm.com>2017-10-12 12:37:16 +0530
commitbeb5226c296492e214346ada70a736195dcab699 (patch)
tree05aaa6cd335ae6a62a79bfd70be3c40151ead9a3 /test/parallel/test-https-agent-sockets-leak.js
parentc24671630552a34040d32d5a49fb6f37d6f7694f (diff)
downloadandroid-node-v8-beb5226c296492e214346ada70a736195dcab699.tar.gz
android-node-v8-beb5226c296492e214346ada70a736195dcab699.tar.bz2
android-node-v8-beb5226c296492e214346ada70a736195dcab699.zip
test: replace common.fixtures with fixtures module
PR-URL: https://github.com/nodejs/node/pull/15877 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-https-agent-sockets-leak.js')
-rw-r--r--test/parallel/test-https-agent-sockets-leak.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-https-agent-sockets-leak.js b/test/parallel/test-https-agent-sockets-leak.js
index 3772fd3a10..15409d33db 100644
--- a/test/parallel/test-https-agent-sockets-leak.js
+++ b/test/parallel/test-https-agent-sockets-leak.js
@@ -4,14 +4,14 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
-const fs = require('fs');
const https = require('https');
const assert = require('assert');
+const fixtures = require('../common/fixtures');
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
- ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem'),
+ ca: fixtures.readKey('ca1-cert.pem')
};
const server = https.Server(options, common.mustCall((req, res) => {