Browse Source

Merge "[FT] Reset "AgentCache" singleton in functional tests"

changes/80/778080/1
Zuul 5 months ago
committed by Gerrit Code Review
parent
commit
77ee0847f5
  1. 5
      neutron/tests/functional/base.py

5
neutron/tests/functional/base.py

@ -41,6 +41,7 @@ from neutron.conf.plugins.ml2.drivers.ovn import ovn_conf
# the SqlFixture
from neutron.db import models # noqa
from neutron import manager
from neutron.plugins.ml2.drivers.ovn.agent import neutron_agent
from neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb import worker
from neutron.plugins.ml2.drivers import type_geneve # noqa
from neutron import service # noqa
@ -200,6 +201,10 @@ class TestOVNFunctionalBase(test_plugin.Ml2PluginV2TestCase,
self.maintenance_worker = maintenance_worker
self._start_idls()
self._start_ovn_northd()
self.addCleanup(self._reset_agent_cache_singleton)
def _reset_agent_cache_singleton(self):
neutron_agent.AgentCache._instance = None
def _get_install_share_path(self):
lookup_paths = set()

Loading…
Cancel
Save