mirror of https://github.com/nodejs/node.git
fix error in test-process-simple
parent
145072e736
commit
c5b5815ae7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue