This is an automated email from the ASF dual-hosted git repository.

weizhouapache pushed a commit to branch 4.23.0-ceph
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 8f35bd4d13cd56f42ef80d4a32a423fd77f2a15a
Author: Wei Zhou <[email protected]>
AuthorDate: Thu Jul 30 14:53:06 2026 +0200

    test: move time.sleep(10) in test_host_maintenance.py
---
 test/integration/smoke/test_host_maintenance.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/integration/smoke/test_host_maintenance.py 
b/test/integration/smoke/test_host_maintenance.py
index 93419951ff6..777682465e1 100644
--- a/test/integration/smoke/test_host_maintenance.py
+++ b/test/integration/smoke/test_host_maintenance.py
@@ -351,7 +351,8 @@ class TestHostMaintenance(TestHostMaintenanceBase):
             if (no_vm_req > 0):
                 self.logger.debug("Creating vms = {}".format(no_vm_req))
                 self.vmlist = self.createVMs(listHost[0].id, no_vm_req)
-                time.sleep(10)
+
+        time.sleep(10)
 
         try:
             migrations_finished = 
self.hostPrepareAndCancelMaintenance(listHost[0].id, listHost[1].id)
@@ -416,7 +417,8 @@ class TestHostMaintenance(TestHostMaintenanceBase):
                 if (no_vm_req > 0):
                     self.logger.debug("Creating vms = {}".format(no_vm_req))
                     self.vmlist = self.createVMs(listHost[0].id, no_vm_req, 
"taggedsmall")
-                    time.sleep(10)
+
+            time.sleep(10)
 
             # Attempt putting host in maintenance and check if 
ErrorInMaintenance state is reached
             self.prepare_host_for_maintenance(target_host_id)

Reply via email to