test: fix test-child-process-stdout-flush-exit
Make sure all the stdout data is available before performing the assertions.
Before this change, I was getting this error from time to time:
assert.js:88
throw new assert.AssertionError({
^
AssertionError: false == true
at ChildProcess.<anonymous> (/usr/home/sgimeno/node/io.js/test/parallel/test-child-process-stdout-flush-exit.js:47:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:763:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:210:5)