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:
Diffstat (limited to 'internal/cgroups/mock_linux_test.go')
-rw-r--r--internal/cgroups/mock_linux_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/cgroups/mock_linux_test.go b/internal/cgroups/mock_linux_test.go
index b941bda23..620ea06d5 100644
--- a/internal/cgroups/mock_linux_test.go
+++ b/internal/cgroups/mock_linux_test.go
@@ -103,8 +103,9 @@ func (m *mockCgroup) setupMockCgroupFiles(
require.NoError(t, os.WriteFile(controlFilePath, []byte(content), 0o644))
}
- for shard := uint(0); shard < manager.cfg.Repositories.Count; shard++ {
- shardPath := filepath.Join(cgroupPath, fmt.Sprintf("repos-%d", shard))
+ // nolint:staticcheck // we will deprecate the old cgroups config in 15.0
+ for shard := uint(0); shard < manager.cfg.Count; shard++ {
+ shardPath := filepath.Join(cgroupPath, fmt.Sprintf("shard-%d", shard))
require.NoError(t, os.MkdirAll(shardPath, 0o755))
for filename, content := range contentByFilename {