mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue