]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Mock out time.sleep in storwize unit tests
authorJohn Griffith <john.griffith@solidfire.com>
Mon, 14 Jul 2014 23:10:18 +0000 (17:10 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Mon, 14 Jul 2014 23:12:03 +0000 (17:12 -0600)
commitf9ae768811fda1a1ac0c1d40b74bb73c416dae52
tree06e91a993d16944359ec70afc9465953c9f73305
parentcfe8f2dec11dbd335028a3ba9c793f5901ef4fcf
Mock out time.sleep in storwize unit tests

The Storwize driver has issues that required them
to add a sleep 1 on init of the driver.

No big deal, but causes unit tests to take a very long
time waiting for the "time.sleep(1)" on every single
unit test that calls init.

This patch just mocks out the time.sleep so we don't have
to do the silly waiting in unit tests.

Change-Id: I10fc3d00252a7e7b90085cb308fb9c6c7e1f5ea7
cinder/tests/test_storwize_svc.py