Skip to content

Commit

Permalink
Fix incorrect test case
Browse files Browse the repository at this point in the history
  • Loading branch information
martin31821 committed Nov 15, 2022
1 parent dd74df3 commit b7c69d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fou_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package netlink
Expand Down Expand Up @@ -42,7 +43,7 @@ func TestFouDeserializeMsg(t *testing.T) {
}

// deserialize truncated attribute header
msg = []byte{3, 1, 0, 0, 5, 0, 2, 0, 2, 0, 0}
msg = []byte{3, 1, 0, 0, 5, 0, 2, 0, 2, 0}
if _, err := deserializeFouMsg(msg); err == nil {
t.Error("expected attribute body truncated error")
} else if err != ErrAttrBodyTruncated {
Expand Down

0 comments on commit b7c69d2

Please sign in to comment.