]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Speedup solidfire unit tests
authorjohn-griffith <john.griffith@solidfire.com>
Wed, 20 Mar 2013 18:24:36 +0000 (12:24 -0600)
committerjohn-griffith <john.griffith@solidfire.com>
Wed, 20 Mar 2013 18:28:49 +0000 (12:28 -0600)
commitcf1ec9ca6668dc3f4a7cd453d16dc4ced1d97c68
treee0aa1f0a59da495101df8df46f9efdf18d922ef4
parent14fe473984812e623301b2617f78ab2e61c2cfd3
Speedup solidfire unit tests

The SolidFire driver has a sleep that's used in a retry loop.  This
sleep was being called every iteration of the loop though
(instead of just when the call failed).

This made SolidFire the slowest test in the unit tests, and obviously
it's just stupid anyway.  So this change fixes that and only performs
the sleep if the call actually failed.

Change-Id: I560f2fdb6bf16a6a9b26184234225349ab62e816
cinder/volume/drivers/solidfire.py