Browse Source

Merge "Change reference to OvnDbNotifyHandler._watched_events" into stable/ussuri

changes/16/790916/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
5238c22060
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py

+ 6
- 1
neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovsdb_monitor.py View File

@ -98,7 +98,12 @@ class TestOvnDbNotifyHandler(base.BaseTestCase):
def setUp(self):
super(TestOvnDbNotifyHandler, self).setUp()
self.handler = ovsdb_monitor.OvnDbNotifyHandler(mock.ANY)
self.watched_events = self.handler._RowEventHandler__watched_events
# NOTE(ralonsoh): once the ovsdbapp library version is bumped beyond
# 1.5.0, the first assignation (using name mangling) can be deleted.
try:
self.watched_events = self.handler._RowEventHandler__watched_events
except AttributeError:
self.watched_events = self.handler._watched_events
def test_watch_and_unwatch_events(self):
expected_events = set()


Loading…
Cancel
Save