fix error in test-process-simple

pull/22966/head
Ryan 2009-06-21 14:07:52 +02:00
parent 145072e736
commit c5b5815ae7
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ var response = "";
var exit_status = -1; var exit_status = -1;
cat.onOutput = function (chunk) { cat.onOutput = function (chunk) {
if (chunk) response += chunk; if (chunk) {
if (response === "hello world") cat.close(); response += chunk;
if (response === "hello world") cat.close();
}
}; };
cat.onError = function (chunk) { cat.onError = function (chunk) {
assertEquals(null, chunk); assertEquals(null, chunk);