[Pkg-javascript-commits] [node-leveldown] 157/492: proper cleanup after idempotent test
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:54 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 dceaa510bf2d51afdb3fc5f310615d459b3128ce
Author: Rod Vagg <rod at vagg.org>
Date: Wed Jan 9 12:12:47 2013 +1100
proper cleanup after idempotent test
---
test/idempotent-test.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test/idempotent-test.js b/test/idempotent-test.js
index e7b6bb9..f4dd924 100644
--- a/test/idempotent-test.js
+++ b/test/idempotent-test.js
@@ -1,6 +1,6 @@
/* Copyright (c) 2012-2013 LevelUP contributors
* See list at <https://github.com/rvagg/node-levelup#contributing>
- * MIT +no-false-attribs License <https://github.com/rvagg/node-levelup/blob/master/LICENSE>
+ * MIT +no-false-attribs License <https://github.com/rvagg/node-levelup/blob/master/LICENSE>
*/
var buster = require('buster')
@@ -9,7 +9,11 @@ var buster = require('buster')
, common = require('./common')
buster.testCase('Idempotent open & close', {
- 'call open twice, should emit "open" once': function (done) {
+ 'setUp': common.readStreamSetUp
+
+ , 'tearDown': common.commonTearDown
+
+ , 'call open twice, should emit "open" once': function (done) {
var location = common.nextLocation()
, n = 0
, m = 0
@@ -28,6 +32,8 @@ buster.testCase('Idempotent open & close', {
process.nextTick(db.close.bind(db))
}.bind(this)
+ this.cleanupDirs.push(location)
+
db = levelup(
location
, { createIfMissing: true }
--
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