Skip to content

Commit

Permalink
Remove go-cmp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fach committed Dec 3, 2020
1 parent c22b35c commit 10723d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"testing"
"time"

"github.com/google/go-cmp/cmp"
"github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
Expand Down Expand Up @@ -1388,9 +1387,10 @@ func TestRouteViaAddDel(t *testing.T) {
t.Fatal("Route not added properly")
}

if !cmp.Equal(route.MultiPath[0].Via, routes[0].Via) {
diff := cmp.Diff(route.MultiPath[0].Via, routes[0].Via)
t.Fatalf("Route Via attribute does not match: %s", diff)
got := routes[0].Via
want := route.MultiPath[0].Via
if !want.Equal(got) {
t.Fatalf("Route Via attribute does not match; got: %s, want: %s", got, want)
}

if err := RouteDel(route); err != nil {
Expand Down

0 comments on commit 10723d7

Please sign in to comment.