test: fixtures in test-process-redirect-warnings
In test/parallel/test-process-redirect-warning.js replace usage of common.fixture by common.fixturesDir PR-URL: https://github.com/nodejs/node/pull/15917 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
7bc6dd02a4
commit
8a8cd40b27
@ -6,6 +6,7 @@
|
|||||||
// opened and the contents are validated
|
// opened and the contents are validated
|
||||||
|
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const fork = require('child_process').fork;
|
const fork = require('child_process').fork;
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
@ -13,7 +14,7 @@ const assert = require('assert');
|
|||||||
|
|
||||||
common.refreshTmpDir();
|
common.refreshTmpDir();
|
||||||
|
|
||||||
const warnmod = require.resolve(`${common.fixturesDir}/warnings.js`);
|
const warnmod = fixtures.path('warnings.js');
|
||||||
const warnpath = path.join(common.tmpDir, 'warnings.txt');
|
const warnpath = path.join(common.tmpDir, 'warnings.txt');
|
||||||
|
|
||||||
fork(warnmod, { execArgv: [`--redirect-warnings=${warnpath}`] })
|
fork(warnmod, { execArgv: [`--redirect-warnings=${warnpath}`] })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user