[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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user