Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2022-08-03 15:22:37 +0300
committerToon Claes <toon@gitlab.com>2022-08-03 15:22:37 +0300
commitd1db00141a2767454407075b194dc0cd66b12655 (patch)
treed23295d841b2052c30e11752a180a5e7917f009c
parent30c010ce568c2e387728658b752fd65ee4f2a926 (diff)
quarantine: Use testhelper.ProtoEqual test message
Using require.Equal does generally not work with grpc messages. We've written the ProtoEqual testhelper, which we are now using instead.
-rw-r--r--internal/git/quarantine/quarantine_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/quarantine/quarantine_test.go b/internal/git/quarantine/quarantine_test.go
index 90034b56b..9c1576549 100644
--- a/internal/git/quarantine/quarantine_test.go
+++ b/internal/git/quarantine/quarantine_test.go
@@ -53,7 +53,7 @@ func TestQuarantine_lifecycle(t *testing.T) {
require.NoError(t, err)
require.Equal(t, repo, quarantine.repo)
- require.Equal(t, &gitalypb.Repository{
+ testhelper.ProtoEqual(t, &gitalypb.Repository{
StorageName: repo.StorageName,
RelativePath: repo.RelativePath,
GitObjectDirectory: relativeQuarantinePath,