diff --git a/spec/node/child_process.coffee b/spec/node/child_process.coffee index 6d0c1dbe5e95..40bbd9730364 100644 --- a/spec/node/child_process.coffee +++ b/spec/node/child_process.coffee @@ -23,7 +23,7 @@ describe 'child_process', -> it 'should work in forked process when options.env is specifed', (done) -> child = child_process.fork path.join(fixtures, 'module', 'fork_ping.js'), [], - env: {test: 'somevar'} + path: process.env['PATH'] child.on 'message', (msg) -> assert.equal msg, 'message' done()