summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-agent-sockets-leak.js
diff options
context:
space:
mode:
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) => {