[FT] Add the datapath binding wait event to the watched list
In other to wait for a OVN DB event, the WaitEvent subclass must be added to the DB notification handler. Change-Id: If4476725f72bde110f9ce1a1507c672d428d52e5 Related-Bug: #1884986
This commit is contained in:
parent
f21b8950f8
commit
d4ae574fd3
|
@ -141,8 +141,10 @@ class TestNBDbMonitor(base.TestOVNFunctionalBase):
|
|||
* Check that the MAC_Binding entry gets deleted.
|
||||
"""
|
||||
net_name = 'network1'
|
||||
self._make_network(self.fmt, net_name, True)
|
||||
row_event = WaitForDataPathBindingCreateEvent(net_name)
|
||||
self.mech_driver._sb_ovn.idl.notify_handler.watch_event(row_event)
|
||||
self._make_network(self.fmt, net_name, True)
|
||||
self.assertTrue(row_event.wait())
|
||||
dp = self.sb_api.db_find(
|
||||
'Datapath_Binding',
|
||||
('external_ids', '=', {'name2': net_name})).execute()
|
||||
|
|
Loading…
Reference in New Issue