diff --git a/protocols/bgp/packet/path_attributes_test.go b/protocols/bgp/packet/path_attributes_test.go
index 5145fddbbd25a27ff8e403ecb4f66a4cfbd60163..15f78fe39a763b86eb31281cbee5e30e54a84585 100644
--- a/protocols/bgp/packet/path_attributes_test.go
+++ b/protocols/bgp/packet/path_attributes_test.go
@@ -62,7 +62,7 @@ func TestDecodePathAttrs(t *testing.T) {
 			continue
 		}
 
-		assert.Equal(t, test.expected, res, "%s", test.name)
+		assert.Equalf(t, test.expected, res, "%s", test.name)
 	}
 }