From 8f94ef46b77eb290a2633811d7dfe6aab0d777a0 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Fri, 24 Jan 2014 07:15:15 -0800 Subject: [PATCH] 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. --- test/simple/test-http-outgoing-finish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-http-outgoing-finish.js b/test/simple/test-http-outgoing-finish.js index 30a0119247..668040a812 100644 --- a/test/simple/test-http-outgoing-finish.js +++ b/test/simple/test-http-outgoing-finish.js @@ -69,7 +69,7 @@ function write(out) { endCb = true; console.error('%s endCb', name); 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); }); });