diff options
Diffstat (limited to 'nova/tests/functional/db/test_virtual_interface.py')
-rw-r--r-- | nova/tests/functional/db/test_virtual_interface.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/tests/functional/db/test_virtual_interface.py b/nova/tests/functional/db/test_virtual_interface.py index 6b9172e4a8..12a62f83ae 100644 --- a/nova/tests/functional/db/test_virtual_interface.py +++ b/nova/tests/functional/db/test_virtual_interface.py @@ -72,9 +72,7 @@ class VirtualInterfaceListMigrationTestCase( fake_network.set_stub_network_methods(self) self.cells = objects.CellMappingList.get_all(self.context) - compute_cell0 = self.start_service( - 'compute', host='compute2', cell='cell0') - self.computes = [compute_cell0, self.compute] + self._start_compute('compute2') self.instances = [] def _create_instances(self, pre_newton=2, deleted=0, total=5, @@ -95,7 +93,7 @@ class VirtualInterfaceListMigrationTestCase( flavor=flavor, created_at=datetime.datetime(1985, 10, 25, 1, 21, 0), launched_at=datetime.datetime(1985, 10, 25, 1, 22, 0), - host=self.computes[0].host, + host=self.computes['compute2'].host, hostname='%s-inst%i' % (target_cell.name, i)) inst.create() |