From c5b5815ae7ff3767ec2d25bd3d02dae81b11e0e8 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 21 Jun 2009 14:07:52 +0200 Subject: [PATCH] fix error in test-process-simple --- test/test-process-simple.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test-process-simple.js b/test/test-process-simple.js index b2babfca3a..f3a761abda 100644 --- a/test/test-process-simple.js +++ b/test/test-process-simple.js @@ -6,8 +6,10 @@ var response = ""; var exit_status = -1; cat.onOutput = function (chunk) { - if (chunk) response += chunk; - if (response === "hello world") cat.close(); + if (chunk) { + response += chunk; + if (response === "hello world") cat.close(); + } }; cat.onError = function (chunk) { assertEquals(null, chunk);