Merge "[test]Speed up RBD test by decreasing retry interval"

This commit is contained in:
Zuul
2025-07-30 11:51:24 +00:00
committed by Gerrit Code Review
+1
View File
@@ -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,