Skip to content

Commit

Permalink
[test minor] Use process.argv[0] when spawning processes
Browse files Browse the repository at this point in the history
Previous implementation used `node`.
  • Loading branch information
mmalecki committed Nov 19, 2011
1 parent 07f8c3e commit 51700ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ exports.assertSystemConf = function (options) {
});
}

spawn('node', [options.script].concat(options.argv), { env: env })
spawn(process.argv[0], [options.script].concat(options.argv), { env: env })
.stdout.once('data', this.callback.bind(this, null));
},
"should respond with the value passed into the script": function (_, data) {
assert.equal(data.toString(), 'foobar');
}
}
}
}

0 comments on commit 51700ca

Please sign in to comment.