From 609a83db5e8eae03bfb6737e53b3dab1f64aba32 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Tue, 29 Mar 2022 13:17:41 -0500 Subject: [PATCH] add missing line from prototest.AssertDeepEqual (#12645) --- proto/prototest/testing.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/prototest/testing.go b/proto/prototest/testing.go index 5b5468ea6..1dbe03618 100644 --- a/proto/prototest/testing.go +++ b/proto/prototest/testing.go @@ -3,11 +3,15 @@ package prototest import ( "testing" + "github.com/golang/protobuf/proto" "github.com/google/go-cmp/cmp" ) func AssertDeepEqual(t *testing.T, x, y interface{}, opts ...cmp.Option) { t.Helper() + + opts = append(opts, cmp.Comparer(proto.Equal)) + if diff := cmp.Diff(x, y, opts...); diff != "" { t.Fatalf("assertion failed: values are not equal\n--- expected\n+++ actual\n%v", diff) }