Comment 3 for bug 1497269

Revision history for this message
Renat Akhmerov (rakhmerov) wrote : Re: [Bug 1497269] Re: test_scheduler_multi_instance fails once in a while

Может у нас по ошибке в тестах больше одного скедулера запускается?

Sent from Renat's iPad

> 29 сент. 2015 г., в 17:32, Nikolay Makhotkin <email address hidden> написал(а):
>
> 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.
>
> ======================================================================
> FAIL: mistral.tests.unit.services.test_scheduler.SchedulerServiceTest.test_scheduler_without_factory
> tags: worker-2
> ----------------------------------------------------------------------
> Empty attachments:
> pythonlogging:''
> stderr
> stdout
>
> 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.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1497269
>
> Title:
> test_scheduler_multi_instance fails once in a while
>
> Status in Mistral:
> Incomplete
> Status in Mistral liberty series:
> Incomplete
>
> Bug description:
> http://logs.openstack.org/59/222159/7/gate/gate-mistral-
> python27/6e11234/testr_results.html.gz
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mistral/+bug/1497269/+subscriptions