From 64e1501bdabeea0675308caec71c64109dad3ce1 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 5b5468ea6b..1dbe036187 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) }