[GCE] Use NoDBTestCase for nova tests
Currently we use nova.test.TestCase which causes db access and test failure sometimes. Since we don't require database access in gce nova testcases we can use NoDBTestCase instead. Change-Id: I47546695ba8a69e494c677d9e542768f34e51250
This commit is contained in:
parent
d6f6913ee2
commit
3e9cad24ba
|
@ -26,7 +26,7 @@ from nova.virt.gce.driver import GCEDriver
|
|||
DATA_DIR = os.path.dirname(os.path.abspath(__file__)) + '/data'
|
||||
|
||||
|
||||
class GCENovaTestCase(test.TestCase):
|
||||
class GCENovaTestCase(test.NoDBTestCase):
|
||||
@mock.patch('nova.virt.gce.driver.gceutils.get_machines_info')
|
||||
@mock.patch('nova.virt.gce.driver.gceutils.get_gce_service')
|
||||
def setUp(self, mock_service, mock_machine_info):
|
||||
|
|
Loading…
Reference in New Issue