diff options
Diffstat (limited to 'internal/cgroups/mock_linux_test.go')
-rw-r--r-- | internal/cgroups/mock_linux_test.go | 5 |
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 { |