]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix L3 agent functional tests random failures
authorAssaf Muller <amuller@redhat.com>
Thu, 23 Apr 2015 17:43:29 +0000 (13:43 -0400)
committerAssaf Muller <amuller@redhat.com>
Thu, 23 Apr 2015 19:00:09 +0000 (15:00 -0400)
commite2d5be1cb3094ffbfc979aa04262f3dbc43f38ec
tree72fdc49395a889ee58e616b4623e860dd4b69359
parent876717baf8f88dfc6633b9d58fc45468c8b86b0c
Fix L3 agent functional tests random failures

The test_ha_router_failover tests were not being unmocked. This
is because the same object was being mocked twice, but unmocked
once. The mock.patch.stopall call in the tests base class was rewinding
the value of the object from the second mock to the first mock.

Follow up tests in the same worker were using namespace
names defined via the first mock in the failover test.

Closes-Bug: #1446261
Change-Id: I8f24b8bb3a6a501dbe210c2cc67c47fa4b76257c
neutron/tests/functional/agent/test_l3_agent.py