Browse Source

fix error in test-process-simple

v0.7.4-release
Ryan 16 years ago
parent
commit
c5b5815ae7
  1. 6
      test/test-process-simple.js

6
test/test-process-simple.js

@ -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);

Loading…
Cancel
Save