Skip to content

Commit

Permalink
test: fixtures in test-process-redirect-warnings-env
Browse files Browse the repository at this point in the history
Replaced common.fixturesDir with common.fixtures in
test-process-redirect-warnings-env

PR-URL: #15930
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
frkat authored and MylesBorins committed Nov 16, 2017
1 parent f5a1806 commit 5f01272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-process-redirect-warnings-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// opened and the contents are validated

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

common.refreshTmpDir();

const warnmod = require.resolve(common.fixturesDir + '/warnings.js');
const warnmod = require.resolve(fixtures.path('warnings.js'));
const warnpath = path.join(common.tmpDir, 'warnings.txt');

fork(warnmod, {env: {NODE_REDIRECT_WARNINGS: warnpath}})
Expand Down

0 comments on commit 5f01272

Please sign in to comment.