diff --git a/test/parallel/test-stream2-readable-legacy-drain.js b/test/parallel/test-stream2-readable-legacy-drain.js index 399771e46a11ed..809f5d8a6f23bc 100644 --- a/test/parallel/test-stream2-readable-legacy-drain.js +++ b/test/parallel/test-stream2-readable-legacy-drain.js @@ -19,10 +19,8 @@ r.on('end', function() { var w = new Stream(); w.writable = true; -var writes = 0; var buffered = 0; w.write = function(c) { - writes += c.length; buffered += c.length; process.nextTick(drain); return false;