[UT] Delete the OVN AgentCache instance in the cleanup

Delete the ``AgentCache`` instance after each test in
``AgentCacheTestCase`` class.

Closes-Bug: #2106575
Change-Id: Id3fa5c909403a100cb6edbcc5dba1a638eb98553
(cherry picked from commit 52098e1c36)
This commit is contained in:
Rodolfo Alonso Hernandez
2025-04-09 06:34:57 +00:00
parent ab3b600a62
commit a4bf5b781a

View File

@@ -38,7 +38,7 @@ class AgentCacheTestCase(base.BaseTestCase):
self.names_ref.append('chassis' + str(i))
def _clean_agent_cache(self):
self.agent_cache.agents = {}
del self.agent_cache
def _list_agents(self):
self.names_read = []