Merge "Prevent init_host test to interfere with other tests" into stable/queens
This commit is contained in:
commit
ff9b3c3466
|
@ -56,7 +56,9 @@ class ComputeManagerInitHostTestCase(test_servers.ProviderUsageBaseTestCase):
|
||||||
# fail and set the instance to ERROR status, revert allocations,
|
# fail and set the instance to ERROR status, revert allocations,
|
||||||
# etc which is not realistic if the service actually crashed while
|
# etc which is not realistic if the service actually crashed while
|
||||||
# migrate_disk_and_power_off was running.
|
# 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
|
source_driver = self.computes[source_host].manager.driver
|
||||||
with mock.patch.object(source_driver, 'migrate_disk_and_power_off',
|
with mock.patch.object(source_driver, 'migrate_disk_and_power_off',
|
||||||
|
|
Loading…
Reference in New Issue