Merge "[FT] Add the datapath binding wait event to the watched list"

This commit is contained in:
Zuul 2021-01-15 19:17:34 +00:00 committed by Gerrit Code Review
commit c52b17f21c
1 changed files with 3 additions and 1 deletions

View File

@ -144,8 +144,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()