diff --git a/cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.py b/cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.py index 47c68141495..a72da7729b1 100644 --- a/cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.py +++ b/cinder/tests/unit/volume/drivers/ibm/test_storwize_svc.py @@ -2912,8 +2912,8 @@ class StorwizeSVCCommonDriverTestCase(test.TestCase): self.driver.do_setup(None) self.driver.check_for_setup_error() self.driver._helpers.check_fcmapping_interval = 0 - self.mock_gr_sleep = mock.patch.object( - storwize_svc_common.StorwizeSVCCommonDriver, "DEFAULT_GR_SLEEP", 0) + self.mock_object(storwize_svc_iscsi.StorwizeSVCISCSIDriver, + 'DEFAULT_GR_SLEEP', 0) def _set_flag(self, flag, value, configuration=None): if not configuration: