diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-09-14 17:35:35 -0300 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-09-16 10:00:45 +0200 |
commit | 223f26eb2df3378ce275da2774a7ae923519afa1 (patch) | |
tree | 45ffe0ae97e14da5d5dc7cfad85b1198f1f76e4d | |
parent | 98f99d1106a8941b701acda78095c3e4d1cd5f9e (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.
-rw-r--r-- | common/src/leap/soledad/common/tests/util.py | 13 |
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: |