diff options
Diffstat (limited to 'internal/praefect/replicator_pg_test.go')
-rw-r--r-- | internal/praefect/replicator_pg_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/praefect/replicator_pg_test.go b/internal/praefect/replicator_pg_test.go index 2ee5ef568..27c694538 100644 --- a/internal/praefect/replicator_pg_test.go +++ b/internal/praefect/replicator_pg_test.go @@ -11,6 +11,7 @@ import ( "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitaly/v15/client" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/service/repository" + "gitlab.com/gitlab-org/gitaly/v15/internal/helper" "gitlab.com/gitlab-org/gitaly/v15/internal/praefect/datastore" "gitlab.com/gitlab-org/gitaly/v15/internal/testhelper" "gitlab.com/gitlab-org/gitaly/v15/internal/testhelper/testdb" @@ -41,7 +42,7 @@ func TestReplicatorInvalidSourceRepository(t *testing.T) { srv := grpc.NewServer() gitalypb.RegisterRepositoryServiceServer(srv, &mockRepositoryService{ ReplicateRepositoryFunc: func(context.Context, *gitalypb.ReplicateRepositoryRequest) (*gitalypb.ReplicateRepositoryResponse, error) { - return nil, repository.ErrInvalidSourceRepository + return nil, helper.ErrNotFoundf("validate: %w", repository.ErrInvalidSourceRepository) }, }) defer srv.Stop() |