Skip to content

Commit

Permalink
missing import and need to dereference variables for error output
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Young <[email protected]>
  • Loading branch information
Jacob Young committed May 11, 2023
1 parent e344f1f commit fc6625a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/net/net_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"bytes"
"os"
"reflect"
"strings"
"testing"
)

Expand Down Expand Up @@ -143,7 +144,7 @@ func TestParseNicAttrEthtool(t *testing.T) {
actual.Capabilities = append(actual.Capabilities, autoNegCap(m))
actual.Capabilities = append(actual.Capabilities, pauseFrameUseCap(m))
if !reflect.DeepEqual(test.expected, actual) {
t.Fatalf("In test %d\nExpected:\n%+v\nActual:\n%+v\n", x, test.expected, actual)
t.Fatalf("In test %d\nExpected:\n%+v\nActual:\n%+v\n", x, *test.expected, *actual)
}
}
}

0 comments on commit fc6625a

Please sign in to comment.