diff options
Diffstat (limited to 'pkg/packet/bgp/prefix_sid_test.go')
-rw-r--r-- | pkg/packet/bgp/prefix_sid_test.go | 6 |
1 files 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) } }) |