From 6de096709c54a010e45d71a7508272f74ab25bed Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 11 Sep 2013 10:07:54 -0300 Subject: Fix tests that leaked couch instances. --- common/src/leap/soledad/common/tests/test_couch.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/src') 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) -- cgit v1.2.3