Skip to content

Commit 1e0a555

Browse files
ChristianMurphytargos
authored andcommitted
test: replaces fixturesDir with fixtures methods
PR-URL: #15817 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 6f6b2cb commit 1e0a555

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/sequential/test-regress-GH-4015.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
const common = require('../common');
23+
require('../common');
24+
const { fixturesDir } = require('../common/fixtures');
2425
const assert = require('assert');
25-
const exec = require('child_process').exec;
26+
const { exec } = require('child_process');
2627

2728
const cmd =
28-
`"${process.execPath}" "${common.fixturesDir}/test-regress-GH-4015.js"`;
29+
`"${process.execPath}" "${fixturesDir}/test-regress-GH-4015.js"`;
2930

3031
exec(cmd, function(err, stdout, stderr) {
3132
assert(/RangeError: Maximum call stack size exceeded/.test(stderr));

0 commit comments

Comments
 (0)