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:
authorSami Hiltunen <shiltunen@gitlab.com>2022-02-16 21:31:40 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-02-23 14:22:04 +0300
commita5fbfdb893532bbde430a13c3fa1666318e6c92b (patch)
treea0cc552a880593184c40850fd84ec93414f71f64
parentc5f586e34eba8e1322f5f7e0993935c3eb8b4e48 (diff)
Prepare commit service's tests for replica path
commit service's test are working on the disk directly and they assume the object pool is stored at the relative path the client sent. This won't be the case anymore with Praefect rewriting relative paths to guarantee atomicity of creations, deletes and renames.
-rw-r--r--internal/gitaly/service/commit/find_commit_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/commit/find_commit_test.go b/internal/gitaly/service/commit/find_commit_test.go
index 8a57d56e0..54b2ad459 100644
--- a/internal/gitaly/service/commit/find_commit_test.go
+++ b/internal/gitaly/service/commit/find_commit_test.go
@@ -337,7 +337,7 @@ func TestFindCommitWithCache(t *testing.T) {
// get a list of revisions
gitCmdFactory := gittest.NewCommandFactory(t, cfg)
- logCmd, err := gitCmdFactory.New(ctx, repo,
+ logCmd, err := gitCmdFactory.New(ctx, gittest.RewrittenRepository(ctx, t, cfg, repo),
git.SubCmd{Name: "log", Flags: []git.Option{git.Flag{Name: "--format=format:%H"}}})
require.NoError(t, err)