diff options
author | Toon Claes <toon@gitlab.com> | 2022-08-03 15:22:37 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2022-08-03 15:22:37 +0300 |
commit | d1db00141a2767454407075b194dc0cd66b12655 (patch) | |
tree | d23295d841b2052c30e11752a180a5e7917f009c | |
parent | 30c010ce568c2e387728658b752fd65ee4f2a926 (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.go | 2 |
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, |