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:
Diffstat (limited to 'internal/gitaly/service/repository/write_ref_test.go')
-rw-r--r--internal/gitaly/service/repository/write_ref_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gitaly/service/repository/write_ref_test.go b/internal/gitaly/service/repository/write_ref_test.go
index c6b38d713..2429b3b8f 100644
--- a/internal/gitaly/service/repository/write_ref_test.go
+++ b/internal/gitaly/service/repository/write_ref_test.go
@@ -217,7 +217,7 @@ func TestWriteRef_missingRevisions(t *testing.T) {
Ref: []byte("refs/heads/main"),
Revision: []byte("refs/heads/missing"),
},
- expectedErr: helper.ErrInternalf("resolving new revision: reference not found"),
+ expectedErr: helper.ErrNotFoundf("update ref: resolving new revision: reference not found"),
},
{
desc: "revision refers to missing object",
@@ -226,7 +226,7 @@ func TestWriteRef_missingRevisions(t *testing.T) {
Ref: []byte("refs/heads/main"),
Revision: bytes.Repeat([]byte("1"), gittest.DefaultObjectHash.EncodedLen()),
},
- expectedErr: helper.ErrInternalf("resolving new revision: reference not found"),
+ expectedErr: helper.ErrNotFoundf("update ref: resolving new revision: reference not found"),
},
{
desc: "old revision refers to missing reference",
@@ -236,7 +236,7 @@ func TestWriteRef_missingRevisions(t *testing.T) {
Revision: []byte(commitID),
OldRevision: bytes.Repeat([]byte("1"), gittest.DefaultObjectHash.EncodedLen()),
},
- expectedErr: helper.ErrInternalf("resolving old revision: reference not found"),
+ expectedErr: helper.ErrNotFoundf("update ref: resolving old revision: reference not found"),
},
} {
t.Run(tc.desc, func(t *testing.T) {