Skip to content

Commit 2103453

Browse files
ChristianMurphyMylesBorins
authored andcommitted
test: replaces fixturesDir with fixtures methods
PR-URL: #15817 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent e705ad2 commit 2103453

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use strict';
2-
const common = require('../common');
2+
require('../common');
3+
const { fixturesDir } = require('../common/fixtures');
34
const assert = require('assert');
4-
const exec = require('child_process').exec;
5+
const { exec } = require('child_process');
56

67
const cmd =
7-
`"${process.execPath}" "${common.fixturesDir}/test-regress-GH-4015.js"`;
8+
`"${process.execPath}" "${fixturesDir}/test-regress-GH-4015.js"`;
89

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

0 commit comments

Comments
 (0)