Skip to content

Commit

Permalink
test: update 'fixturesDir' refs in a test file
Browse files Browse the repository at this point in the history
This was a task from Code & Learn at NINA17.

PR-URL: #15824
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
JamesMGreene authored and refack committed Oct 7, 2017
1 parent ee587f3 commit 1c97fa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-http-url.parse-https.request.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const { readKey } = require('../common/fixtures');

const assert = require('assert');
const https = require('https');
const url = require('url');
const fs = require('fs');

// https options
const httpsOptions = {
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
key: readKey('agent1-key.pem'),
cert: readKey('agent1-cert.pem')
};

function check(request) {
Expand Down

0 comments on commit 1c97fa7

Please sign in to comment.