Merge "Make test_throttler happy"

This commit is contained in:
Zuul 2021-02-23 22:04:38 +00:00 committed by Gerrit Code Review
commit 0ba81d3a48
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class TestThrottler(base.BaseTestCase):
def sleep_mock(amount_to_sleep):
sleep(amount_to_sleep)
self.assertGreater(threshold, amount_to_sleep)
self.assertGreaterEqual(threshold, amount_to_sleep)
with mock.patch.object(utils.eventlet, "sleep",
side_effect=sleep_mock):