Skip to content

Commit

Permalink
test ignore arp flake fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QxBytes committed Aug 28, 2024
1 parent 6b05df1 commit 521b452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netlink/netlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package netlink

import (
"net"
"strings"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -303,7 +304,8 @@ func TestAddRemoveStaticArp(t *testing.T) {
}

err = nl.SetOrRemoveLinkAddress(linkInfo, REMOVE, NUD_INCOMPLETE)
if err != nil {
// ignore no such file or directory found error to avoid flake
if err != nil && !strings.Contains(err.Error(), "no such file or directory") {
t.Errorf("ret val %v", err)
}

Expand Down

0 comments on commit 521b452

Please sign in to comment.