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