From c2c028c68067353fe6891f61f17194f9139478f5 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 13 May 2024 18:00:52 +0200 Subject: [PATCH] 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. --- test/dbus/lvmdbustest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py index b9a3b7975..f631c1502 100755 --- a/test/dbus/lvmdbustest.py +++ b/test/dbus/lvmdbustest.py @@ -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, "/")