Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Jul 16, 2024
1 parent ebc1f26 commit 67f5587
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/test_route_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def test_given_netlink_message_when_rtm_newroute_event_then_add_new_route_entry_
"event": "RTM_NEWROUTE",
}
self.route_controller._netlink_event_listener(
self.ndb,
example_route_entry
)
mock_add_new_route_entry.assert_called()
Expand Down Expand Up @@ -443,6 +444,7 @@ def test_given_netlink_message_when_rtm_delroute_event_then_delete_route_entry_i
"event": "RTM_DELROUTE",
}
self.route_controller._netlink_event_listener(
self.ndb,
example_route_entry
)
mock_delete_route_entry.assert_called()
Expand Down Expand Up @@ -481,6 +483,7 @@ def test_given_netlink_message_when_rtm_newneigh_event_then_add_unresolved_new_n
self, mock_add_unresolved_new_neighbor
):
self.route_controller._netlink_event_listener(
self.ndb,
{"event": "RTM_NEWNEIGH"}
)
mock_add_unresolved_new_neighbor.assert_called()

0 comments on commit 67f5587

Please sign in to comment.