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

This commit is contained in:
Zuul 2019-11-05 13:50:21 +00:00 committed by Gerrit Code Review
commit ff9b3c3466
1 changed files with 3 additions and 1 deletions

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',