mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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.
This commit is contained in:
parent
bd76e4c860
commit
9247238cc4
|
@ -698,7 +698,7 @@ def test_add_6(self, ifa_str):
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue