Browse Source

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>
v9.x-staging
jopann 8 years ago
committed by Ruben Bridgewater
parent
commit
0dbff4c862
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 7
      test/parallel/test-https-host-headers.js

7
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);

Loading…
Cancel
Save