summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-09-11 10:07:54 -0300
committerdrebs <drebs@leap.se>2013-09-18 11:24:55 -0300
commit6de096709c54a010e45d71a7508272f74ab25bed (patch)
tree64db8e27098ac8d009778fcc70b09e15475ff111
parentfb7c40677f9b415198c023e9ab6ed01d4cd70e20 (diff)
Fix tests that leaked couch instances.
-rw-r--r--common/src/leap/soledad/common/tests/test_couch.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/tests/test_couch.py b/common/src/leap/soledad/common/tests/test_couch.py
index 2fb799b7..3b49f39e 100644
--- a/common/src/leap/soledad/common/tests/test_couch.py
+++ b/common/src/leap/soledad/common/tests/test_couch.py
@@ -271,6 +271,14 @@ class CouchDatabaseSyncTargetTests(test_sync.DatabaseSyncTargetTests,
scenarios = (tests.multiply_scenarios(COUCH_SCENARIOS, target_scenarios))
+ def setUp(self):
+ # we implement parents' setUp methods here to prevent from launching
+ # more couch instances then needed.
+ tests.TestCase.setUp(self)
+ self.server = self.server_thread = None
+ self.db, self.st = self.create_db_and_target(self)
+ self.other_changes = []
+
def tearDown(self):
self.db.delete_database()
test_sync.DatabaseSyncTargetTests.tearDown(self)