From 51700cae88b616ba09284ca8eec83dd82fb3aa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Sat, 19 Nov 2011 01:29:01 +0100 Subject: [PATCH] [test minor] Use `process.argv[0]` when spawning processes Previous implementation used `node`. --- test/helpers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/helpers.js b/test/helpers.js index e6f95eb..b09e7b6 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -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'); } } -} \ No newline at end of file +} +