1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: reduce number of created LVs

lvm2 for a while already optimizes 'vgremove' operation to
a single commit when possible if all LVs can be
easily deactivated.

So the number of LVs doesn't matter much - but the tested
case 'test_delete_non_complete_job' seems to be taking
some time anyway to capture the exception.

So just reducing the running time of the test significatanly
as we don't need to create 64LVs for 4 'execution mode' runs.
This commit is contained in:
Zdenek Kabelac 2024-05-13 18:00:52 +02:00
parent a86fb27607
commit c2c028c680

View File

@ -2331,9 +2331,9 @@ class TestDbusService(unittest.TestCase):
self._log_file_option()
def test_delete_non_complete_job(self):
# Let's create a vg with a number of lvs and then delete it all
# Let's create a vg with some number of lvs and then delete it all
# to hopefully create a long-running job.
vg_proxy = self._create_num_lvs(64)
vg_proxy = self._create_num_lvs(4)
job_path = vg_proxy.Vg.Remove(dbus.Int32(0), EOD)
self.assertNotEqual(job_path, "/")