summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-host-headers.js
diff options
context:
space:
mode:
authorjopann <jopann@gmail.com>2017-10-06 17:52:28 +0000
committerRuben Bridgewater <ruben@bridgewater.de>2017-10-08 15:05:51 -0700
commit0dbff4c8625965168dc6b577f9bf57565a29ed61 (patch)
tree9a01da20c45ff927cae4c4f36a44d26f7e8609d3 /test/parallel/test-https-host-headers.js
parent55bb9c41284d49bf4f1ebbb674d4ba9cad7508d5 (diff)
downloadandroid-node-v8-0dbff4c8625965168dc6b577f9bf57565a29ed61.tar.gz
android-node-v8-0dbff4c8625965168dc6b577f9bf57565a29ed61.tar.bz2
android-node-v8-0dbff4c8625965168dc6b577f9bf57565a29ed61.zip
test: replaced fixturesDir with common.fixtures
PR-URL: https://github.com/nodejs/node/pull/15971 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-https-host-headers.js')
-rw-r--r--test/parallel/test-https-host-headers.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js
index 1181d300bf..eb0e8b896a 100644
--- a/test/parallel/test-https-host-headers.js
+++ b/test/parallel/test-https-host-headers.js
@@ -1,15 +1,16 @@
'use strict';
const common = require('../common');
+const fixtures = require('../common/fixtures');
+
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const https = require('https');
-const fs = require('fs');
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 httpsServer = https.createServer(options, reqHandler);