From 218ce9448ba234903b7ca344b9a572b96565be5b Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Fri, 25 Jul 2025 15:38:55 +0200 Subject: [PATCH] [test]Speed up RBD test by decreasing retry interval Before Test id Runtime (s) ------------------------------------------------ ----------- RbdTestCase.test_cleanup_volumes_pending_resize 5.035 TestProfiler.test_all_public_methods_are_traced 0.080 After Test id Runtime (s) ----------------------------------------------- ----------- TestProfiler.test_all_public_methods_are_traced 0.082 RbdTestCase.test_cleanup_volumes_pending_resize 0.029 Change-Id: Ibf43651d0a675ab7bf0dbfdf9f3fbd0072d39f98 Signed-off-by: Balazs Gibizer --- nova/tests/unit/storage/test_rbd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/tests/unit/storage/test_rbd.py b/nova/tests/unit/storage/test_rbd.py index f89c2dee89ee..923b09b846df 100644 --- a/nova/tests/unit/storage/test_rbd.py +++ b/nova/tests/unit/storage/test_rbd.py @@ -454,6 +454,7 @@ class RbdTestCase(test.NoDBTestCase): @mock.patch.object(rbd_utils, 'RADOSClient') @mock.patch.object(rbd_utils, 'RBDVolumeProxy') def test_cleanup_volumes_pending_resize(self, mock_proxy, mock_client): + self.flags(rbd_destroy_volume_retry_interval=0.1, group='libvirt') self.mock_rbd.ImageBusy = FakeException self.mock_rbd.ImageHasSnapshots = FakeException instance = objects.Instance(id=1, uuid=uuids.instance,