test_scheduler.SchedulerServiceTest fails sometimes

Bug #1569178 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Medium
Renat Akhmerov

Bug Description

Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-mistral-python34/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/workspace/gate-mistral-python34/mistral/tests/unit/services/test_scheduler.py", line 143, in test_scheduler_without_factory
    method.assert_called_once_with(name='task', id='321')
  File "/home/jenkins/workspace/gate-mistral-python34/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 947, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected 'factory_method' to be called once. Called 2 times.

Changed in mistral:
milestone: none → newton-1
importance: Undecided → Medium
status: New → Confirmed
Changed in mistral:
status: Confirmed → Incomplete
assignee: nobody → Renat Akhmerov (rakhmerov)
Revision history for this message
Jeff Peeler (jpeeler-z) wrote :

FWIW, I've seen this on python 2.7 too:

Traceback (most recent call last):
  File "/home/jpeeler/src/mistral/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "mistral/tests/unit/services/test_scheduler.py", line 143, in test_scheduler_without_factory
    method.assert_called_once_with(name='task', id='321')
  File "/home/jpeeler/src/mistral/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected 'factory_method' to be called once. Called 2 times.

Revision history for this message
Dougal Matthews (d0ugal) wrote :

Marking this as invalid to clear out the incomplete bugs. The last comment was around 2 years ago.

Changed in mistral:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.