test: fixtures in test-process-redirect-warnings-env

Replaced common.fixturesDir with common.fixtures in
test-process-redirect-warnings-env

PR-URL: https://github.com/nodejs/node/pull/15930
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Kat Rosario authored and Myles Borins committed 2017-11-28 13:10:20 +09:00
1 parent 18479d3cff
commit 244bfb398d
1 file changed
+2 -1
@@ -6,6 +6,7 @@
// 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');
@@ -13,7 +14,7 @@ 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}})