Skip to content

Commit

Permalink
test: replace fixturesDir with the fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #16027
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
  • Loading branch information
weiplanet authored and MylesBorins committed Nov 28, 2017
1 parent d591750 commit a28d666
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/parallel/test-http-default-port.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
'use strict';
const common = require('../common');

if (!common.hasCrypto)
common.skip('missing crypto');

const fixtures = require('../common/fixtures');
const http = require('http');
const assert = require('assert');
const hostExpect = 'localhost';
const fs = require('fs');
const path = require('path');
const fixtures = path.join(common.fixturesDir, 'keys');
const options = {
key: fs.readFileSync(`${fixtures}/agent1-key.pem`),
cert: fs.readFileSync(`${fixtures}/agent1-cert.pem`)
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem')
};
let gotHttpsResp = false;
let gotHttpResp = false;
Expand Down

0 comments on commit a28d666

Please sign in to comment.