diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2023-06-13 15:24:24 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2023-06-13 15:26:44 +0000 |
commit | 9247238cc4b8835892a47701136b0fd073f8d67c (patch) | |
tree | 5e85269d87a81e57e60fe6d3db9e0123e351b8ec | |
parent | bd76e4c860b1ceb5c4ef42b9ba318a17df278808 (diff) | |
download | src-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.py | 2 |
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 |