Stub sleep in storwize tests
Stub sleep in glance tests
Change-Id: Ia935d561d104a4cd6373624208dedf5891b516e3
client = glance_stubs.StubGlanceClient()
self.service = self._create_image_service(client)
self.context = context.RequestContext('fake', 'fake', auth_token=True)
+ self.stubs.Set(glance.time, 'sleep', lambda s: None)
def _create_image_service(self, client):
def _fake_create_glance_client(context, host, port, version):
self.driver.do_setup(None)
self.driver.check_for_setup_error()
+ self.stubs.Set(storwize_svc.time, 'sleep', lambda s: None)
def test_storwize_svc_volume_tests(self):
self.flags(storwize_svc_vol_rsize="-1")