diff --git a/test/index.js b/test/index.js index 4d45a85c..5552b14c 100644 --- a/test/index.js +++ b/test/index.js @@ -76,7 +76,7 @@ test('read huge result', function(done) { var values = [] cursor = pgCursor(text, values); var count = 0; - var more = function() { + var read = function() { cursor.read(1000, function(err, rows) { if(err) return done(err); if(!rows.length) { @@ -90,5 +90,5 @@ test('read huge result', function(done) { setImmediate(more) }) } - more() + read() }, 100000)