]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
ml2/type_gre: Adds missing clear_db to test_type_gre.py
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 17 Dec 2013 03:00:22 +0000 (12:00 +0900)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 17 Dec 2013 03:10:36 +0000 (12:10 +0900)
GreTypeTest.setUp() in test_type_gre.py should have
self.addCleanup(db.clear_db). This patch adds it.

Change-Id: I1f2ac5d2cae47812591fc5b50099053a4ad9ba85
Closes-Bug: #1261593

neutron/tests/unit/ml2/test_type_gre.py

index e17f337eab0e65059a57a539a055d0b2b5e1ad43..2f903e9a2ef847e75efa59d5b78db563af246c0d 100644 (file)
@@ -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',