From 609729c95a7925aaec03e706c0cc73f0669a3dbb Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 5 May 2014 07:05:03 -0700 Subject: [PATCH] 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 --- nova/tests/compute/test_compute.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py index b2dcec41ffa7..97b283a29a12 100644 --- a/nova/tests/compute/test_compute.py +++ b/nova/tests/compute/test_compute.py @@ -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())