diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-10-20 10:55:32 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-10-26 17:01:42 +0300 |
commit | ed90d91fa0ae2108b7a3174e1f890fd72749e922 (patch) | |
tree | 470174c0018dd6b2c25710db33499685cd0e331a /internal/git2go/apply_test.go | |
parent | 0ca7050be1b342394bce52f6ae63887be7954bf0 (diff) |
testhelper: Move build helpers into the testcfg package
Move build helpers from the testhelper into the testcfg package to break
the dependency on `internal/gitaly/config`. Note that packages other
than the testhelper package have no access to the global temporary test
directory, which makes it impossible to create directories shared across
tests from other packages. We thus also introduce a new helper function
`CreateGlobalDirectory()` which creates a global deterministic directory
in the shared temporary directory.
Diffstat (limited to 'internal/git2go/apply_test.go')
-rw-r--r-- | internal/git2go/apply_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git2go/apply_test.go b/internal/git2go/apply_test.go index c455a4a88..0d99cdd04 100644 --- a/internal/git2go/apply_test.go +++ b/internal/git2go/apply_test.go @@ -17,7 +17,7 @@ import ( func TestExecutor_Apply(t *testing.T) { cfg := testcfg.Build(t) - testhelper.BuildGitalyGit2Go(t, cfg) + testcfg.BuildGitalyGit2Go(t, cfg) repoProto, repoPath := gittest.InitRepo(t, cfg, cfg.Storages[0]) |