Skip to content

Commit

Permalink
test: use fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #16034
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
moe-dizzle authored and MylesBorins committed Nov 28, 2017
1 parent bba5263 commit bd8d440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-https-unix-socket-self-signed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ if (!common.hasCrypto)

common.refreshTmpDir();

const fs = require('fs');
const fixtures = require('../common/fixtures');
const https = require('https');
const options = {
cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`),
key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`)
cert: fixtures.readSync('test_cert.pem'),
key: fixtures.readSync('test_key.pem')
};

const server = https.createServer(options, common.mustCall((req, res) => {
Expand Down

0 comments on commit bd8d440

Please sign in to comment.