diff --git a/ghttp/handlers.go b/ghttp/handlers.go index 3e7b66971..4a76da1be 100644 --- a/ghttp/handlers.go +++ b/ghttp/handlers.go @@ -210,7 +210,7 @@ func (g GHTTPWithGomega) VerifyProtoRepresenting(expected proto.Message) http.Ha err = proto.Unmarshal(body, actual) g.gomega.Expect(err).ShouldNot(HaveOccurred(), "Failed to unmarshal protobuf") - g.gomega.Expect(actual).Should(Equal(expected), "ProtoBuf Mismatch") + g.gomega.Expect(proto.Equal(expected, actual)).Should(BeTrue(), "ProtoBuf Mismatch") }, ) }