diff options
author | Vincent Bernat <bernat@debian.org> | 2019-12-15 12:53:56 +0100 |
---|---|---|
committer | Vincent Bernat <vincent@bernat.ch> | 2019-12-15 13:12:04 +0100 |
commit | ba675f0174bf8916b888d7098ed9d3c129f8c338 (patch) | |
tree | 28b100668a30c6b1b1556171f4a0008e8ee41dc0 /pkg/server/sockopt_linux.go | |
parent | 8f029122dcb443586069adf7143b97f4f5fedbde (diff) |
tests: fix failing tests when using more recent versions of protobuf
When regenerating the `*.pb.go` file, we get many tests failing
because testify is using `reflect.DeepEqual()` under the hood. There
is no option to have a custom comparison function and currently, the
only way around is to use `proto.Equal()` to compare protobuf
messages. The downside of using `proto.Equal()` is that we loose the
expected/actual display in case of a mismatch.
When comparing family, we compare `Api`/`Sapi` in separate asserts
instead of using `proto.Equal()`.
Fix: #1952
Diffstat (limited to 'pkg/server/sockopt_linux.go')
0 files changed, 0 insertions, 0 deletions