From dbf1d8c2f7e3cff2ec223fce6e81bb0f65558a4c Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet Date: Fri, 6 Oct 2017 10:17:00 -0700 Subject: [PATCH] test: replace usage of common.fixtures by common.fixturesDir In test/parallel/test-process-redirect-warning.js replace usage of common.fixture by common.fixturesDir --- test/parallel/test-process-redirect-warnings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-process-redirect-warnings.js b/test/parallel/test-process-redirect-warnings.js index d38a2e97e25454..76f376240ba9b9 100644 --- a/test/parallel/test-process-redirect-warnings.js +++ b/test/parallel/test-process-redirect-warnings.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 = fixtures.path('warnings.js'); const warnpath = path.join(common.tmpDir, 'warnings.txt'); fork(warnmod, { execArgv: [`--redirect-warnings=${warnpath}`] })