]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix sluggish rbd unit tests
authorTom Barron <tpb@dyncloud.net>
Thu, 21 Jan 2016 16:56:14 +0000 (11:56 -0500)
committerTom Barron <tpb@dyncloud.net>
Fri, 22 Jan 2016 11:25:59 +0000 (06:25 -0500)
commitf23458c16ce41489f4982e30975afdc4c41c2296
tree32dc4bf09d7b7b3e7726f06946dc04d3bdea0f70
parent201f7d73828054144812b8f25d642e219bf09f45
Fix sluggish rbd unit tests

The rbd_test.py module tests methods decorated by utils.retry,
which does retries with exponential backoffs, without mocking out
time.sleep().

This commit mocks time.sleep(), yielding a 3x speedup, as documented
in the accompanying bug.

Closes-Bug: #1536717

Change-Id: I414629f09f397e44d3a5be794ef83658a4c1eec0
cinder/tests/unit/test_rbd.py