diff options
Diffstat (limited to 'internal/gitaly/service/repository')
-rw-r--r-- | internal/gitaly/service/repository/calculate_checksum_test.go | 4 | ||||
-rw-r--r-- | internal/gitaly/service/repository/optimize_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/gitaly/service/repository/calculate_checksum_test.go b/internal/gitaly/service/repository/calculate_checksum_test.go index e4d445e9c..f5a49a320 100644 --- a/internal/gitaly/service/repository/calculate_checksum_test.go +++ b/internal/gitaly/service/repository/calculate_checksum_test.go @@ -67,7 +67,7 @@ func TestRefWhitelist(t *testing.T) { func TestEmptyRepositoryCalculateChecksum(t *testing.T) { cfg, client := setupRepositoryServiceWithoutRepo(t) - repo, _, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + repo, _, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) t.Cleanup(cleanup) request := &gitalypb.CalculateChecksumRequest{Repository: repo} @@ -82,7 +82,7 @@ func TestEmptyRepositoryCalculateChecksum(t *testing.T) { func TestBrokenRepositoryCalculateChecksum(t *testing.T) { cfg, client := setupRepositoryServiceWithoutRepo(t) - repo, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0]) + repo, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) t.Cleanup(cleanup) // Force an empty HEAD file diff --git a/internal/gitaly/service/repository/optimize_test.go b/internal/gitaly/service/repository/optimize_test.go index 45f5933ca..5c1d22407 100644 --- a/internal/gitaly/service/repository/optimize_test.go +++ b/internal/gitaly/service/repository/optimize_test.go @@ -89,7 +89,7 @@ func TestOptimizeRepository(t *testing.T) { require.Equal(t, getNewestPackfileModtime(t, repoPath), newestsPackfileTime, "there should not have been a new packfile created") - testRepo, testRepoPath, cleanupBare := gittest.InitBareRepoAt(t, cfg.Storages[0]) + testRepo, testRepoPath, cleanupBare := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0]) t.Cleanup(cleanupBare) blobs := 10 |