This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test-child-process-spawn-loop: make it pass on Windows.

It wasn't waiting for the child process' stderr to close, so not an
assertion was made *before* all the data that the child process sent
was received by node.
  • Loading branch information...
piscisaureus committed Jun 13, 2012
1 parent e733dc3 commit 74c8041fb6d781981e5f7e58167dd4ac3c487a7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/pummel/test-child-process-spawn-loop.js
@@ -46,7 +46,7 @@ function doSpawn(i) {
console.log('stderr: ' + chunk);
});
- child.on('exit', function() {
+ child.on('close', function() {
// + 1 for \n or + 2 for \r\n on Windows
assert.equal(SIZE + (is_windows ? 2 : 1), count);
if (i < N) {

0 comments on commit 74c8041

Please sign in to comment.