summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-09-14 17:35:35 -0300
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-09-16 10:00:45 +0200
commit223f26eb2df3378ce275da2774a7ae923519afa1 (patch)
tree45ffe0ae97e14da5d5dc7cfad85b1198f1f76e4d /common
parent98f99d1106a8941b701acda78095c3e4d1cd5f9e (diff)
[tests] remove remaining dbs check
This was used during db isolation to make sure that everything created was destroyed, but it fails with -j (multiprocess). Removing it allows parallelism.
Diffstat (limited to 'common')
-rw-r--r--common/src/leap/soledad/common/tests/util.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/common/src/leap/soledad/common/tests/util.py b/common/src/leap/soledad/common/tests/util.py
index 41307eb7..1c7adb91 100644
--- a/common/src/leap/soledad/common/tests/util.py
+++ b/common/src/leap/soledad/common/tests/util.py
@@ -345,20 +345,9 @@ class CouchDBTestCase(unittest.TestCase, MockedSharedDBTest):
"""
Make sure we have a CouchDB instance for a test.
"""
- server = self.couch_server = couchdb.Server()
- self.previous_dbs = set([db for db in server])
self.couch_port = 5984
self.couch_url = 'http://localhost:%d' % self.couch_port
-
- def tearDown(self):
- """
- Stop CouchDB instance for test.
- """
- current_dbs = set([db for db in self.couch_server])
- remaining_dbs = current_dbs - self.previous_dbs
- if remaining_dbs:
- raise Exception("tests created %s and didn't clean up!",
- remaining_dbs)
+ self.couch_server = couchdb.Server(self.couch_url)
def delete_db(self, name):
try: