summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet/bgp
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/packet/bgp')
-rw-r--r--pkg/packet/bgp/prefix_sid_test.go6
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)
}
})