Wait for close event instead of exit so stdout done
This commit is contained in:
parent
a004cada7c
commit
361c3e0700
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue