yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83589
[Bug 1891517] [NEW] neutron.tests.unit.common.test_utils.TimerTestCase.test__enter_with_timeout fails once in a while
Public bug reported:
While running job openstack-tox-lower-constraints
https://zuul.opendev.org/t/openstack/job/openstack-tox-lower-constraints
I see intermittent failures that look lie this:
neutron.tests.unit.common.test_utils.TimerTestCase.test__enter_with_timeout
---------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func'
b' return f(self, *args, **kwargs)'
b' File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 551, in test__enter_with_timeout'
b' self.assertEqual(1, round(timer.total_seconds()))'
b' File "/home/zuul/src/opendev.org/openstack/neutron/.tox/lower-constraints/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual'
b' self.assertThat(observed, matcher, message)'
b' File "/home/zuul/src/opendev.org/openstack/neutron/.tox/lower-constraints/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat'
b' raise mismatch_error'
b'testtools.matchers._impl.MismatchError: 1 != 2'
b''
The code needs to do better in the rounding of the second. ;)
Reference run failure:
https://zuul.opendev.org/t/openstack/build/f031ac5c396a4610853fba5178e9fd1b
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1891517
Title:
neutron.tests.unit.common.test_utils.TimerTestCase.test__enter_with_timeout
fails once in a while
Status in neutron:
New
Bug description:
While running job openstack-tox-lower-constraints
https://zuul.opendev.org/t/openstack/job/openstack-tox-lower-
constraints
I see intermittent failures that look lie this:
neutron.tests.unit.common.test_utils.TimerTestCase.test__enter_with_timeout
---------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func'
b' return f(self, *args, **kwargs)'
b' File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/common/test_utils.py", line 551, in test__enter_with_timeout'
b' self.assertEqual(1, round(timer.total_seconds()))'
b' File "/home/zuul/src/opendev.org/openstack/neutron/.tox/lower-constraints/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual'
b' self.assertThat(observed, matcher, message)'
b' File "/home/zuul/src/opendev.org/openstack/neutron/.tox/lower-constraints/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat'
b' raise mismatch_error'
b'testtools.matchers._impl.MismatchError: 1 != 2'
b''
The code needs to do better in the rounding of the second. ;)
Reference run failure:
https://zuul.opendev.org/t/openstack/build/f031ac5c396a4610853fba5178e9fd1b
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1891517/+subscriptions
Follow ups