Skip to content

Commit

Permalink
fix: mac arm64 run netlink ut (#4511)
Browse files Browse the repository at this point in the history
* fix: mac arm64 run netlink ut

---------

Signed-off-by: bobz965 <[email protected]>
Co-authored-by: 张祖建 <[email protected]>
  • Loading branch information
bobz965 and zhangzujian authored Sep 13, 2024
1 parent bf75a65 commit f3061ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/arp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

"github.com/vishvananda/netlink"
"golang.org/x/sys/unix"
)

func TestMacEqual(t *testing.T) {
Expand Down Expand Up @@ -54,7 +55,7 @@ func TestMacEqual(t *testing.T) {

func TestArpResolve(t *testing.T) {
// get the default route gw and nic
routes, err := netlink.RouteList(nil, netlink.FAMILY_ALL)
routes, err := netlink.RouteList(nil, unix.AF_UNSPEC)
if err != nil {
t.Fatalf("failed to get routes: %v", err)
}
Expand Down

0 comments on commit f3061ef

Please sign in to comment.