aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2023-06-13 15:24:24 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2023-06-13 15:26:44 +0000
commit9247238cc4b8835892a47701136b0fd073f8d67c (patch)
tree5e85269d87a81e57e60fe6d3db9e0123e351b8ec
parentbd76e4c860b1ceb5c4ef42b9ba318a17df278808 (diff)
downloadsrc-9247238cc4b8835892a47701136b0fd073f8d67c.tar.gz
src-9247238cc4b8835892a47701136b0fd073f8d67c.zip
netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.
Recent netlink commit added hook for calling IPv6 code upon implicit inteface bring-up on adding first interface address. This hook handles link-local ifa addition for the loopback interface, resulting in failed assertion in the loopback tests. Fix the tests by fixing the assert.
-rw-r--r--tests/sys/netlink/test_rtnl_ifaddr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/netlink/test_rtnl_ifaddr.py b/tests/sys/netlink/test_rtnl_ifaddr.py
index c7d6d86e781b..48e53502df54 100644
--- a/tests/sys/netlink/test_rtnl_ifaddr.py
+++ b/tests/sys/netlink/test_rtnl_ifaddr.py
@@ -698,7 +698,7 @@ class TestRtNlAddIfaddrLo(RtnlIfaOps):
self.send_check_success(msg)
lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip))
- assert len(lst) == 1
+ assert len(lst) == 2 # link-local should be auto-created as well
rx_msg = self.find_msg_by_ifa(lst, ifa.ip)
assert rx_msg is not None