From: Isaku Yamahata Date: Tue, 17 Dec 2013 03:00:22 +0000 (+0900) Subject: ml2/type_gre: Adds missing clear_db to test_type_gre.py X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e5939c32100ad42bfcf97f7373dfc06bc171e90e;p=openstack-build%2Fneutron-build.git ml2/type_gre: Adds missing clear_db to test_type_gre.py GreTypeTest.setUp() in test_type_gre.py should have self.addCleanup(db.clear_db). This patch adds it. Change-Id: I1f2ac5d2cae47812591fc5b50099053a4ad9ba85 Closes-Bug: #1261593 --- diff --git a/neutron/tests/unit/ml2/test_type_gre.py b/neutron/tests/unit/ml2/test_type_gre.py index e17f337ea..2f903e9a2 100644 --- a/neutron/tests/unit/ml2/test_type_gre.py +++ b/neutron/tests/unit/ml2/test_type_gre.py @@ -40,6 +40,7 @@ class GreTypeTest(base.BaseTestCase): self.driver.gre_id_ranges = TUNNEL_RANGES self.driver._sync_gre_allocations() self.session = db.get_session() + self.addCleanup(db.clear_db) def test_validate_provider_segment(self): segment = {api.NETWORK_TYPE: 'gre',