Browse Source

test: fix assert in test-http-outgoing-finish

Given the assert message, and the fact that endCb is always true
in the assert, I am pretty sure the test author was intending
to test for finishEvent, not endCb.
v0.11.12-release
Alexis Campailla 11 years ago
committed by Timothy J Fontaine
parent
commit
8f94ef46b7
  1. 2
      test/simple/test-http-outgoing-finish.js

2
test/simple/test-http-outgoing-finish.js

@ -69,7 +69,7 @@ function write(out) {
endCb = true; endCb = true;
console.error('%s endCb', name); console.error('%s endCb', name);
process.nextTick(function() { process.nextTick(function() {
assert(endCb, name + ' got endCb event before finishEvent!'); assert(finishEvent, name + ' got endCb event before finishEvent!');
console.log('ok - %s endCb', name); console.log('ok - %s endCb', name);
}); });
}); });

Loading…
Cancel
Save