Make child_process.fork work when options.env is set.
This commit is contained in:
parent
88bdff5832
commit
e17da272f4
2 changed files with 10 additions and 1 deletions
|
@ -19,3 +19,12 @@ describe 'child_process', ->
|
||||||
assert.equal msg, 'message'
|
assert.equal msg, 'message'
|
||||||
done()
|
done()
|
||||||
child.send 'message'
|
child.send 'message'
|
||||||
|
|
||||||
|
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'}
|
||||||
|
child.on 'message', (msg) ->
|
||||||
|
assert.equal msg, 'message'
|
||||||
|
done()
|
||||||
|
child.send 'message'
|
||||||
|
|
2
vendor/node
vendored
2
vendor/node
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 9fc97854c9395edea096464edfb1e0a3b68145fe
|
Subproject commit c2ecf615ac2bb846a38ffa0b64e9ce0ff4f8953b
|
Loading…
Reference in a new issue