Skip to content

Commit

Permalink
test: replace fixturesDir in tls-env-bad-extra-ca
Browse files Browse the repository at this point in the history
PR-URL: #15813
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
  • Loading branch information
aniwng authored and MylesBorins committed Nov 28, 2017
1 parent 48a55d1 commit 0f8b315
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-tls-env-bad-extra-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const tls = require('tls');
const fixtures = require('../common/fixtures');
const fork = require('child_process').fork;
const tls = require('tls');

if (process.env.CHILD) {
// This will try to load the extra CA certs, and emit a warning when it fails.
Expand All @@ -17,7 +18,7 @@ if (process.env.CHILD) {

const env = {
CHILD: 'yes',
NODE_EXTRA_CA_CERTS: `${common.fixturesDir}/no-such-file-exists`,
NODE_EXTRA_CA_CERTS: `${fixtures.fixturesDir}/no-such-file-exists`
};

const opts = {
Expand Down

0 comments on commit 0f8b315

Please sign in to comment.