From 9b76de161d690faee341a87e8066d40329b4f5b0 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Wed, 4 Sep 2013 14:36:11 -0400 Subject: [PATCH] ensure that Arista test destroys the database Out of order test execution has revealed that the database was not properly cleaned up after each test run. This patch adds a call to clear the database after each test. Fixes bug: 1220784 Change-Id: I8a706887f89f21ede88177e441a3b562fd8f74dc --- neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py b/neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py index 431dc6510..5397f77b8 100644 --- a/neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py +++ b/neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py @@ -45,6 +45,7 @@ class AristaProvisionedVlansStorageTestCase(base.BaseTestCase): def setUp(self): super(AristaProvisionedVlansStorageTestCase, self).setUp() ndb.configure_db() + self.addCleanup(ndb.clear_db) def test_tenant_is_remembered(self): tenant_id = 'test'