Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test-child-process-kill: make it pass on windows
Browse files Browse the repository at this point in the history
The test would fail if the child process writes anything to the stdout.
This doesn't happen on unix, since `cat` is spawned. However, on Windows
`cmd` is started, which *does* write stuff to it's stdout. This
meanlingless assert is now removed.
  • Loading branch information
piscisaureus committed Jun 12, 2012
1 parent 10f85fa commit b866a96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/simple/test-child-process-kill.js
Expand Up @@ -37,10 +37,6 @@ var gotStderrEOF = false;
var cat = spawn(is_windows ? 'cmd' : 'cat');


cat.stdout.on('data', function(chunk) {
assert.ok(false);
});

cat.stdout.on('end', function() {
gotStdoutEOF = true;
});
Expand Down

0 comments on commit b866a96

Please sign in to comment.