Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChandra Sekar S <chandru.in@gmail.com>2010-10-30 14:06:59 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-11-01 18:28:57 +0300
commit2b08bacd56c8bea73d80cc93e1ec2d21f7d59494 (patch)
treee995240d207682cc0c2c742b1b650ef2ad0a20ea /test
parent2fa260cef68d5bb2b36bbd6fd4a2885ed4773940 (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.js8
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
+});