Skip to content

Commit

Permalink
test: fixtures in test-process-redirect-warnings
Browse files Browse the repository at this point in the history
In test/parallel/test-process-redirect-warning.js replace usage of
common.fixture by common.fixturesDir

PR-URL: #15917
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
nchaulet authored and MylesBorins committed Nov 28, 2017
1 parent 9ddbcc8 commit e705ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-process-redirect-warnings.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 = fixtures.path('warnings.js');
const warnpath = path.join(common.tmpDir, 'warnings.txt');

fork(warnmod, {execArgv: [`--redirect-warnings=${warnpath}`]})
Expand Down

0 comments on commit e705ad2

Please sign in to comment.