diff options
author | James Fargher <jfargher@gitlab.com> | 2022-11-14 04:48:55 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2022-11-14 23:41:38 +0300 |
commit | abdc4368ec82f0dbb4ef18159e70324950910fc8 (patch) | |
tree | d1cfc6250184267285ace2927f94b8d2f1698e94 | |
parent | 4fcf13724746c6287ea8bbd928d29eefab504632 (diff) |
tempdir: Run tests in sha256 mode
The implementation of tempdir is object hash agnostic.
-rw-r--r-- | internal/tempdir/clean_test.go | 7 | ||||
-rw-r--r-- | internal/tempdir/tempdir_test.go | 2 | ||||
-rw-r--r-- | internal/tempdir/testhelper_test.go | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/internal/tempdir/clean_test.go b/internal/tempdir/clean_test.go index 1c33a7dbc..cc6592d85 100644 --- a/internal/tempdir/clean_test.go +++ b/internal/tempdir/clean_test.go @@ -1,5 +1,3 @@ -//go:build !gitaly_test_sha256 - package tempdir import ( @@ -59,11 +57,12 @@ func TestCleanTempDir(t *testing.T) { cfg := testcfg.Build(t, testcfg.WithStorages("first", "second")) locator := config.NewLocator(cfg) - gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{ + _, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{ SkipCreationViaService: true, - Seed: gittest.SeedGitLabTest, }) + gittest.WriteCommit(t, cfg, repoPath, gittest.WithBranch("master")) + logrus.SetLevel(logrus.InfoLevel) logrus.SetOutput(io.Discard) diff --git a/internal/tempdir/tempdir_test.go b/internal/tempdir/tempdir_test.go index 86e706327..c0e499584 100644 --- a/internal/tempdir/tempdir_test.go +++ b/internal/tempdir/tempdir_test.go @@ -1,5 +1,3 @@ -//go:build !gitaly_test_sha256 - package tempdir import ( diff --git a/internal/tempdir/testhelper_test.go b/internal/tempdir/testhelper_test.go index a51a8905e..1bd19e1d3 100644 --- a/internal/tempdir/testhelper_test.go +++ b/internal/tempdir/testhelper_test.go @@ -1,5 +1,3 @@ -//go:build !gitaly_test_sha256 - package tempdir import ( |