From 135c624755a84ba82e279b158a1d5052844cf26f Mon Sep 17 00:00:00 2001 From: Kat Rosario Date: Sat, 7 Oct 2017 02:29:12 +0900 Subject: [PATCH 1/2] Replaced common.fixturesDir with common.fixtures in test-process-redirect-warnings-env --- test/parallel/test-process-redirect-warnings-env.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-process-redirect-warnings-env.js b/test/parallel/test-process-redirect-warnings-env.js index 6748723cfe0bf3..e09e9b7cf77fc4 100644 --- a/test/parallel/test-process-redirect-warnings-env.js +++ b/test/parallel/test-process-redirect-warnings-env.js @@ -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.fixturesDir}/warnings.js`); const warnpath = path.join(common.tmpDir, 'warnings.txt'); fork(warnmod, { env: Object.assign({}, process.env, From 44a313ecad91d4ba5f1ec1e9d9c292cbd97cc31d Mon Sep 17 00:00:00 2001 From: Kat Rosario Date: Mon, 9 Oct 2017 19:20:29 +0900 Subject: [PATCH 2/2] test: change fixtures.fixturesDir to fixtures.path() --- test/parallel/test-process-redirect-warnings-env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-redirect-warnings-env.js b/test/parallel/test-process-redirect-warnings-env.js index e09e9b7cf77fc4..960dafa7e2a3d0 100644 --- a/test/parallel/test-process-redirect-warnings-env.js +++ b/test/parallel/test-process-redirect-warnings-env.js @@ -14,7 +14,7 @@ const assert = require('assert'); common.refreshTmpDir(); -const warnmod = require.resolve(`${fixtures.fixturesDir}/warnings.js`); +const warnmod = require.resolve(fixtures.path('/warnings.js')); const warnpath = path.join(common.tmpDir, 'warnings.txt'); fork(warnmod, { env: Object.assign({}, process.env,