]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce the chance of random check/gate test failures
authorajmiller <al.miller@ajmiller.net>
Wed, 9 Sep 2015 21:38:41 +0000 (14:38 -0700)
committerajmiller <al.miller@ajmiller.net>
Wed, 9 Sep 2015 21:45:16 +0000 (14:45 -0700)
commit4a8c2b875e4abb8e99d62f1530f209147faada2f
tree10878803786850e05e9461b87dcc36710cfd40b0
parentcb5498f62ff22e25bce2693711b233217472e486
Reduce the chance of random check/gate test failures

As previously implemented, the TestTrackedResource class is designed
to inject random failures into the gate. It generates random numbers
within the range of 0..10000, and will fail if it generates duplicate
random numbers during its run.

This patch creates UUIDs instead of random numbers, and makes the
chance of an collision vanishingly small.

Change-Id: I0cf535d1c5a3995a50b506aafce10e983872dcb7
Closes-bug: #1494021
neutron/tests/unit/quota/test_resource.py
neutron/tests/unit/quota/test_resource_registry.py