From 8cdbf014bd40c679970f6a73173a80d15e5f2275 Mon Sep 17 00:00:00 2001 From: Vincent Ollivier Date: Tue, 28 Feb 2012 20:19:50 +0100 Subject: [PATCH] test: fix typo in test-child-process-stdout-flush --- test/simple/test-child-process-stdout-flush.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-child-process-stdout-flush.js b/test/simple/test-child-process-stdout-flush.js index 5c5bed230a0..8dc39c3a5b8 100644 --- a/test/simple/test-child-process-stdout-flush.js +++ b/test/simple/test-child-process-stdout-flush.js @@ -40,7 +40,7 @@ child.stderr.on('data', function(data) { assert.ok(false); }); -child.stderr.setEncoding('utf8'); +child.stdout.setEncoding('utf8'); child.stdout.on('data', function(data) { count += data.length; console.log(count);