diff options
author | Chandra Sekar S <chandru.in@gmail.com> | 2010-10-30 14:06:59 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-01 18:28:57 +0300 |
commit | 2b08bacd56c8bea73d80cc93e1ec2d21f7d59494 (patch) | |
tree | e995240d207682cc0c2c742b1b650ef2ad0a20ea /test | |
parent | 2fa260cef68d5bb2b36bbd6fd4a2885ed4773940 (diff) |
Removed range read optimization as it doesn't work with libeio.
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-fs-read-stream.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/simple/test-fs-read-stream.js b/test/simple/test-fs-read-stream.js index cc1b6cd66af..55feddef13c 100644 --- a/test/simple/test-fs-read-stream.js +++ b/test/simple/test-fs-read-stream.js @@ -87,13 +87,13 @@ process.addListener('exit', function() { assert.equal(10000, file3.length); }); -var file4 = fs.createReadStream(rangeFile, {start: 1, end: 2}); +var file4 = fs.createReadStream(rangeFile, {bufferSize: 1, start: 1, end: 2}); var contentRead = ''; file4.addListener('data', function(data) { - contentRead += data.toString('utf-8'); + contentRead += data.toString('utf-8'); }); file4.addListener('end', function(data) { - assert.equal(contentRead, 'yz'); + assert.equal(contentRead, 'yz'); }); try { @@ -119,4 +119,4 @@ stream.on('data', function(chunk){ stream.on('end', function(){ assert.equal('x', stream.data); -});
\ No newline at end of file +}); |