From 3a6211a79379f486f9dd251c1893fd1ce5a9e9e5 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Thu, 7 May 2020 07:47:26 -0400 Subject: Addressing review comments Signed-off-by: Serguei Bezverkhi --- pkg/packet/bgp/prefix_sid_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/packet/bgp/prefix_sid_test.go b/pkg/packet/bgp/prefix_sid_test.go index 82a8732e..2df8a3a3 100644 --- a/pkg/packet/bgp/prefix_sid_test.go +++ b/pkg/packet/bgp/prefix_sid_test.go @@ -25,7 +25,7 @@ func TestRoundTripSubSubTLV(t *testing.T) { if err != nil { t.Fatalf("test failed with error: %+v", err) } - if bytes.Compare(tt.input, recovered) != 0 { + if !bytes.Equal(tt.input, recovered) { t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) } }) @@ -52,7 +52,7 @@ func TestRoundTripSubTLV(t *testing.T) { if err != nil { t.Fatalf("test failed with error: %+v", err) } - if bytes.Compare(tt.input, recovered) != 0 { + if !bytes.Equal(tt.input, recovered) { t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) } }) @@ -82,7 +82,7 @@ func TestRoundTripPrefixSID(t *testing.T) { if err != nil { t.Fatalf("test failed with error: %+v", err) } - if bytes.Compare(tt.input, recovered) != 0 { + if !bytes.Equal(tt.input, recovered) { t.Fatalf("round trip conversion test failed as expected prefix sid attribute %+v does not match actual: %+v", tt.input, recovered) } }) -- cgit v1.2.3