summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-12-04 17:34:17 -0800
committerisaacs <i@izs.me>2012-12-14 10:52:28 -0800
commit99021b7a4f7de955074095abfb03e5cbc5416e7b (patch)
tree935383f83820194ecaed1019746add11ef74c7d1 /test
parent42981e2aadfdf1a16218dced31e55d9f62020c4d (diff)
downloadnode-new-99021b7a4f7de955074095abfb03e5cbc5416e7b.tar.gz
streams2: pause() should be immediate
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-fs-empty-readStream.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/simple/test-fs-empty-readStream.js b/test/simple/test-fs-empty-readStream.js
index a9b378fea1..d181c21982 100644
--- a/test/simple/test-fs-empty-readStream.js
+++ b/test/simple/test-fs-empty-readStream.js
@@ -32,12 +32,13 @@ fs.open(emptyFile, 'r', function (error, fd) {
var read = fs.createReadStream(emptyFile, { 'fd': fd });
read.once('data', function () {
- throw new Error("data event should not emit");
+ throw new Error('data event should not emit');
});
var readEmit = false;
read.once('end', function () {
readEmit = true;
+ console.error('end event 1');
});
setTimeout(function () {
@@ -52,12 +53,13 @@ fs.open(emptyFile, 'r', function (error, fd) {
read.pause();
read.once('data', function () {
- throw new Error("data event should not emit");
+ throw new Error('data event should not emit');
});
var readEmit = false;
read.once('end', function () {
readEmit = true;
+ console.error('end event 2');
});
setTimeout(function () {