Remove unnecessary cleanup in test
The test test_rollback_live_migration_at_destination_correctly makes use of a fake instance object. No need to clean this from the database with db.instance_destroy. This issue was also raised in: https://review.openstack.org/#/c/90801/3/nova/tests/compute/test_compute.py Change-Id: I66a9f60b9e7b2f69f79976c03e4e9ddcc5e02993
This commit is contained in:
1 parent
e497476974
commit
609729c95a
1 file changed
-3
@@ -5477,9 +5477,6 @@ class ComputeTestCase(BaseTestCase):
|
||||
self.assertEqual(msg.event_type,
|
||||
'compute.instance.live_migration.rollback.dest.end')
|
||||
|
||||
# cleanup
|
||||
db.instance_destroy(c, instance.uuid)
|
||||
|
||||
def test_run_kill_vm(self):
|
||||
# Detect when a vm is terminated behind the scenes.
|
||||
instance = jsonutils.to_primitive(self._create_fake_instance())
|
||||
|
||||
Reference in new issue
Block a user