Skip to content

Commit

Permalink
Fix failing test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
feugy committed Feb 25, 2017
1 parent 4588d1a commit 1694d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ describe('CLI', () => {

const startInspector = function (port) {

const labPath = Path.join(__dirname, '/../bin/lab');
const testPath = Path.join(__dirname, '/cli_inspect');
const labPath = Path.join(__dirname, '..', 'bin', 'lab');
const testPath = Path.join(__dirname, 'cli_inspect');
const childEnv = Object.assign({}, process.env);
delete childEnv.NODE_ENV;
const cli = ChildProcess.spawn(labPath, [].concat([testPath, `--inspect=${port}`]), { env: childEnv, cwd : '.' });
const cli = ChildProcess.spawn('node', [].concat([labPath, testPath, `--inspect=${port}`]), { env: childEnv, cwd : '.' });
let combinedOutput = '';

cli.stderr.on('data', (data) => {
Expand All @@ -348,7 +348,7 @@ describe('CLI', () => {
setTimeout(() => {

cli.kill('SIGINT');
}, 150);
}, 500);
};
});

Expand Down

0 comments on commit 1694d79

Please # to comment.