[Pkg-javascript-commits] [node-leveldown] 94/492: work-around for dodgy slow-stream
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit 9fb87ec8cd21d81c929997868fb41fd3363b10f5
Author: Rod Vagg <rod at vagg.org>
Date: Thu Dec 13 20:02:49 2012 +1100
work-around for dodgy slow-stream
---
test/snapshot-test.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/snapshot-test.js b/test/snapshot-test.js
index 1df88e8..613c5fe 100644
--- a/test/snapshot-test.js
+++ b/test/snapshot-test.js
@@ -28,13 +28,13 @@ buster.testCase('Snapshots', {
rs = rs.pipe(new SlowStream({ maxWriteInterval: 5 }))
this.readySpy()
rs.on('data' , this.dataSpy)
- rs.on('end' , this.endSpy)
+ rs.once('end' , this.endSpy)
rs.on('end', function () {
rs.readable = false
rs.writable = false
})
- rs.on('close', delayed.delayed(this.verify.bind(this, rs, done), 0.05))
+ rs.once('close', delayed.delayed(this.verify.bind(this, rs, done), 0.05))
process.nextTick(function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list