diff options
author | Zuul <zuul@review.openstack.org> | 2019-01-18 03:31:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-01-18 03:31:53 +0000 |
commit | eff0629790af2dda13d8566a20ceee21f4a52a7a (patch) | |
tree | 5f6d687afe5ced5418b8058bff3531ab83010870 /oslo_utils/tests | |
parent | 380bf5a47ef1bceb8b2b1c5c9f15e6c7cfdc038d (diff) | |
parent | 14a53c4d8a9d5605b14a503803859df0d6d4b820 (diff) | |
download | oslo-utils-eff0629790af2dda13d8566a20ceee21f4a52a7a.tar.gz |
Merge "Avoid calling eventlet.event.Event.reset()"3.40.1
Diffstat (limited to 'oslo_utils/tests')
-rw-r--r-- | oslo_utils/tests/test_eventletutils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/oslo_utils/tests/test_eventletutils.py b/oslo_utils/tests/test_eventletutils.py index 4460649..96205f0 100644 --- a/oslo_utils/tests/test_eventletutils.py +++ b/oslo_utils/tests/test_eventletutils.py @@ -146,12 +146,11 @@ class EventletUtilsTest(test_base.BaseTestCase): self.assertTrue(hasattr(e_event, method)) # Ensure set() allows multiple invocations, same as in - # threading implementation. Must call reset on underlying - # Event before reusing it + # threading implementation. e_event.set() - self.assertEqual(0, mock_eventlet.event.Event().reset.call_count) + self.assertTrue(e_event.isSet()) e_event.set() - self.assertEqual(1, mock_eventlet.event.Event().reset.call_count) + self.assertTrue(e_event.isSet()) def test_event_no_timeout(self): event = eventletutils.EventletEvent() |