Merge pull request #9238 from electron/wait-for-stdout-close

Wait for close event instead of exit in spec
This commit is contained in:
Kevin Sawicki 2017-04-20 14:17:07 -07:00 committed by GitHub
commit e95ba067a5

View file

@ -85,7 +85,7 @@ describe('node feature', function () {
child.stdout.on('data', (chunk) => {
data += String(chunk)
})
child.on('exit', (code) => {
child.on('close', (code) => {
assert.equal(code, 0)
assert.equal(data, 'pipes stdio')
done()