]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Tests: Don't sleep for looping calls (eqlx)
authorEric Harney <eharney@redhat.com>
Tue, 3 Feb 2015 11:16:08 +0000 (12:16 +0100)
committerEric Harney <eharney@redhat.com>
Tue, 3 Feb 2015 11:26:48 +0000 (12:26 +0100)
commit3f70f6f34fdea1706d92a3af4a4b828e9451f7dc
tree5073a582478401709568d1352ac1b229d9d5b236
parent17779327c6d7ea43e26bd2226567fd37cda904a9
Tests: Don't sleep for looping calls (eqlx)

Mock out greenthread.sleep() so that unit tests
do not spend extra time sleeping.

This changes the eqlx tests from:
Ran 23 tests in 33.533s
 to:
Ran 23 tests in 19.260s

Also remove unneeded randomness.

Change-Id: I1cc03f41fa41e827ec5e39b28a49f6a9ad66b2a1
cinder/tests/test_eqlx.py