Remove call to addCleanup(cfg.CONF.reset)
The addCleanup(cfg.CONF.reset) is done by base class, therefore no need to invoke it from mlnx agent unit test setUp method. Change-Id: Ie7e55d92e63a28699d8fec7c63951449eb7c0a50 Closes-Bug: 1286716
This commit is contained in:
parent
2964b8483a
commit
334bc84483
@ -29,7 +29,6 @@ class TestEswitchAgent(base.BaseTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestEswitchAgent, self).setUp()
|
||||
self.addCleanup(cfg.CONF.reset)
|
||||
self.addCleanup(mock.patch.stopall)
|
||||
# Avoid rpc initialization for unit tests
|
||||
cfg.CONF.set_override('rpc_backend',
|
||||
|
Loading…
Reference in New Issue
Block a user