This commit mocks out time.sleep() in the test_retry_request()
method of test_emc_xtremio.EMCXIODriverTestCase.
As documented in the accompanying bug, this yields about a 6X
speedup for this unit test suite.
Change-Id: I86647dce1fe8a6e8281ee3617fbc5e5c1332404d
Closes-Bug: #
1536782
# License for the specific language governing permissions and limitations
# under the License.
+import time
+
import mock
from cinder import exception
self.data = CommonData()
+ @mock.patch.object(time, 'sleep', mock.Mock(return_value=0))
def test_retry_request(self, req):
busy_response = mock.MagicMock()
busy_response.status_code = 400