]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: give more time to tests in test_clone_stats.py
authorRishabh Dave <ridave@redhat.com>
Mon, 8 Dec 2025 12:54:47 +0000 (18:24 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 8 Dec 2025 12:54:47 +0000 (18:24 +0530)
Currently tests wait for 10 seconds for clone progress bar to appear and
it usually takes 8 seconds to find it. In case of the host where test is
being run is slow, the progress bar can take more time to appear and the
test can fail unnecessarily. To avoid this, increase the waiting
duration.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/volumes/test_clone_stats.py

index 5b5c41ee32f422764a97a2c25fd3f6e7c317fac7..299107cfdad6b03d1339c82b080535c8361d8821 100644 (file)
@@ -376,7 +376,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper):
 
         self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {c}')
 
-        with safe_while(tries=10, sleep=1) as proceed:
+        with safe_while(tries=10, sleep=2) as proceed:
             while proceed():
                 pev = self.get_pevs_from_ceph_status(c)
 
@@ -425,7 +425,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper):
         self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {c} '
                           f'--group-name {group}')
 
-        with safe_while(tries=10, sleep=1) as proceed:
+        with safe_while(tries=10, sleep=2) as proceed:
             while proceed():
                 pev = self.get_pevs_from_ceph_status(c)
 
@@ -521,7 +521,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper):
         for i in c:
             self.run_ceph_cmd(f'fs subvolume snapshot clone {v} {sv} {ss} {i}')
 
-        with safe_while(tries=10, sleep=1) as proceed:
+        with safe_while(tries=10, sleep=2) as proceed:
             while proceed():
                 pev = self.get_pevs_from_ceph_status(c)
 
@@ -573,7 +573,7 @@ class TestCloneProgressReporter(CloneProgressReporterHelper):
 
         msg = ('messages for progress bars for snapshot cloning are not how '
                'they were expected')
-        with safe_while(tries=20, sleep=1, action=msg) as proceed:
+        with safe_while(tries=20, sleep=2, action=msg) as proceed:
             while proceed():
                 pevs = self.get_pevs_from_ceph_status(c)