Skip to content

Commit e705ad2

Browse files
nchauletMylesBorins
authored andcommitted
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: #15917 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9ddbcc8 commit e705ad2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-process-redirect-warnings.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
// opened and the contents are validated
77

88
const common = require('../common');
9+
const fixtures = require('../common/fixtures');
910
const fs = require('fs');
1011
const fork = require('child_process').fork;
1112
const path = require('path');
1213
const assert = require('assert');
1314

1415
common.refreshTmpDir();
1516

16-
const warnmod = require.resolve(common.fixturesDir + '/warnings.js');
17+
const warnmod = fixtures.path('warnings.js');
1718
const warnpath = path.join(common.tmpDir, 'warnings.txt');
1819

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

0 commit comments

Comments
 (0)