]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix torpid coordinator unit tests
authorTom Barron <tpb@dyncloud.net>
Thu, 21 Jan 2016 18:17:59 +0000 (13:17 -0500)
committerTom Barron <tpb@dyncloud.net>
Fri, 22 Jan 2016 11:21:48 +0000 (06:21 -0500)
commite2faa7c523ed220abfafbabb710d0ec11a21883f
tree4083df0ed7b48d13e07cc5ba799d7447e8a109a2
parent201f7d73828054144812b8f25d642e219bf09f45
Fix torpid coordinator unit tests

The test_coordination.py unit module tests a _reconnect() method
which does a randomly seeded exponential retry backoff.  This
retry/backoff mechanism introduces needless delay in unit test
runs.

This commit mocks out random.uniform, improving run time by about
a factor of nine, as documented in the accompanying bug.

Closes-Bug: #1536750

Change-Id: I83fafba17be99cbe972dfb60fe87dac6dc3756cf
cinder/tests/unit/test_coordination.py