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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-10-10 13:01:02 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-10-14 13:44:54 +0300
commit1881ab188e2789715ad1307fb1748d6c14e72474 (patch)
tree5b89a52a44d9e7390208d2f233433dec8629fac4 /internal/git2go
parent7d88809fa9bac82129b76e472f80e917eb0e3806 (diff)
global: Reorder `testing.TB` before `context.Context` arguments
A few weeks ago we have decided that `testing.TB` arguments should be first, `context.Context` second. This is rather a matter of perssnal taste instead of correctness, but we should strive for consistency. Reorder all arguments to match the agreed-upon style.
Diffstat (limited to 'internal/git2go')
-rw-r--r--internal/git2go/apply_test.go2
-rw-r--r--internal/git2go/commit_test.go2
-rw-r--r--internal/git2go/featureflags_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/git2go/apply_test.go b/internal/git2go/apply_test.go
index af99a58e9..e92f90a6d 100644
--- a/internal/git2go/apply_test.go
+++ b/internal/git2go/apply_test.go
@@ -22,7 +22,7 @@ func TestExecutor_Apply(t *testing.T) {
cfg := testcfg.Build(t)
testcfg.BuildGitalyGit2Go(t, cfg)
- repoProto, repoPath := gittest.CreateRepository(ctx, t, cfg, gittest.CreateRepositoryConfig{
+ repoProto, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
})
diff --git a/internal/git2go/commit_test.go b/internal/git2go/commit_test.go
index 48deee815..711021a10 100644
--- a/internal/git2go/commit_test.go
+++ b/internal/git2go/commit_test.go
@@ -51,7 +51,7 @@ func TestExecutor_Commit(t *testing.T) {
cfg := testcfg.Build(t)
testcfg.BuildGitalyGit2Go(t, cfg)
- repoProto, repoPath := gittest.CreateRepository(ctx, t, cfg, gittest.CreateRepositoryConfig{
+ repoProto, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
})
diff --git a/internal/git2go/featureflags_test.go b/internal/git2go/featureflags_test.go
index b4e9117ef..d4b89cf00 100644
--- a/internal/git2go/featureflags_test.go
+++ b/internal/git2go/featureflags_test.go
@@ -48,7 +48,7 @@ func testExecutorFeatureFlags(t *testing.T, ctx context.Context) {
cfg := testcfg.Build(t)
testcfg.BuildGitalyGit2Go(t, cfg)
- repoProto, _ := gittest.CreateRepository(ctx, t, cfg, gittest.CreateRepositoryConfig{
+ repoProto, _ := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
})