Not only the one test fails. test_scheduler_with_factory, test_scheduler_without_factory also fail once in a while. But these tests don't assume we have multi instance scheduler. Here is a concurrency problem.
Traceback (most recent call last):
File "/home/kolyan/projects/mistral/.tox/py27/local/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 119, in test_scheduler_without_factory
method.assert_called_once_with(name='task', id='321')
File "/home/kolyan/projects/mistral/.tox/py27/local/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.
Not only the one test fails. test_scheduler_ with_factory, test_scheduler_ without_ factory also fail once in a while. But these tests don't assume we have multi instance scheduler. Here is a concurrency problem.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. services. test_scheduler. SchedulerServic eTest.test_ scheduler_ without_ factory ------- ------- ------- ------- ------- ------- ------- ------- -------
FAIL: mistral.
tags: worker-2
-------
Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last): kolyan/ projects/ mistral/ .tox/py27/ local/lib/ python2. 7/site- packages/ mock/mock. py", line 1305, in patched tests/unit/ services/ test_scheduler. py", line 119, in test_scheduler_ without_ factory assert_ called_ once_with( name='task' , id='321') kolyan/ projects/ mistral/ .tox/py27/ local/lib/ python2. 7/site- packages/ mock/mock. py", line 947, in assert_ called_ once_with
File "/home/
return func(*args, **keywargs)
File "mistral/
method.
File "/home/
raise AssertionError(msg)
AssertionError: Expected 'factory_method' to be called once. Called 2 times.