-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests are failing with more recent versions of google/protobuf #1952
Comments
Thanks for the report. What's the version of protobuf? Due to the following golang bug, I can't update the dependency for the newer protobuf but I'll try after it's fixed. |
This is with 1.2.0. |
Hey! Any news on that? |
I tend to simply update the test code use
|
A long term solution would be for testify to use something like |
Great, thanks a lot! btw, what's the advantage of using the latest protobuf/grpc? |
None, but that's what in Debian and to package gobgpd into Debian, I have to use the versions in Debian (by policy). |
Hey!
When regenerating
*.pb.go
files with a more recent version, many tests are failing:This is due to the addition of
XXX_sizecache
. Authors suggest to useproto.Equal()
instead ofreflect.DeepEqual()
. However, as the test is done throughassert.Equal()
, I am unsure of what the right solution is.Testify has an issue and a PR to use
go-cmp
instead, but I don't think it would change anything since the structures don't come with anEqual()
method. We could either have a wrapper aroundassert.Equal()
to useproto.Equal()
if possible first. Or just use a dedicated helper when we compare proto messages. The first approach seems less error-prone.The text was updated successfully, but these errors were encountered: