test_ratelimit_sleep_with_incr unreliable in gate
Bug #1298154 reported by
Clark Boylan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
test_ratelimit_
To correct this time.time() and possibly eventlet.sleep() may need to be mocked out to allow for a greater degree of control over the "sleep" period.
While we are at it the assert can be rewritten as 'self.assertTru
Changed in swift: | |
milestone: | none → 1.13.1-rc1 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
Changed in swift: | |
milestone: | 1.13.1-rc1 → 1.13.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/83277 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=5bb7603fce7 bba58dd73cdca95 6e015054391380
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5bb7603fce7bba5 8dd73cdca956e01 5054391380
Author: Peter Portante <email address hidden>
Date: Wed Mar 26 22:38:03 2014 -0400
Mock out time and sleep to avoid races
We mock out time.time(), time.sleep() and eventlet.sleep() so that we
avoid test problems caused by exceedingly long delays during the
execution of the test.
We also make sure to convert the units used in the tests to
milliseconds for a bit more clarity.
Closes bug: 1298154
Change-Id: I803d06cbf205a0 2a4f7bb1e0c467d 276632cd6a3