Browse Source

Merge "Prevent init_host test to interfere with other tests" into stable/queens

changes/39/693239/1
Zuul 3 months ago
parent
commit
ff9b3c3466
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nova/tests/functional/compute/test_init_host.py

+ 3
- 1
nova/tests/functional/compute/test_init_host.py View File

@@ -56,7 +56,9 @@ class ComputeManagerInitHostTestCase(test_servers.ProviderUsageBaseTestCase):
# fail and set the instance to ERROR status, revert allocations,
# etc which is not realistic if the service actually crashed while
# migrate_disk_and_power_off was running.
time.sleep(30)
# The sleep value needs to be large to avoid this waking up and
# interfering with other tests running on the same worker.
time.sleep(1000000)

source_driver = self.computes[source_host].manager.driver
with mock.patch.object(source_driver, 'migrate_disk_and_power_off',

Loading…
Cancel
Save