Make test_throttler happy
neutron.tests.unit.common.test_utils.TestThrottler.test_throttler
is failing with "AssertionError: 1 not greater than 1", change the
assert to assertGreaterEqual.
Change-Id: Iba29ab0b1141e731cc811e8bee076dd5726248b5
Closes-Bug: #1916572
(cherry picked from commit b168232e03
)
This commit is contained in:
parent
d961731a73
commit
94a702791c
|
@ -425,7 +425,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):
|
||||
|
|
Loading…
Reference in New Issue