Skip to content

Commit

Permalink
test: replaces fixturesDir with fixtures methods
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ChristianMurphy authored and MylesBorins committed Nov 28, 2017
1 parent e705ad2 commit 2103453
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/sequential/test-regress-GH-4015.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use strict';
const common = require('../common');
require('../common');
const { fixturesDir } = require('../common/fixtures');
const assert = require('assert');
const exec = require('child_process').exec;
const { exec } = require('child_process');

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

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

0 comments on commit 2103453

Please sign in to comment.