исправление теста dlcache_test.go №2
Some checks failed
Pre-commit / pre-commit (push) Failing after 4m59s

This commit is contained in:
2025-08-26 23:41:33 +03:00
parent 77055aa2cb
commit 292125a8ff
5 changed files with 68 additions and 5 deletions

View File

@@ -25,7 +25,6 @@ import (
"path/filepath"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/config"
"gitea.plemya-x.ru/Plemya-x/ALR/internal/utils"
)
type Config interface {
@@ -62,8 +61,8 @@ func (dc *DownloadCache) New(ctx context.Context, id string) (string, error) {
}
}
// Используем специальную функцию для создания каталогов с setgid битом
err = utils.EnsureTempDirWithRootOwner(itemPath, 0o2775)
// Создаем директорию с правильными правами (различается для prod и тестов)
err = createDir(itemPath, 0o2775)
if err != nil {
return "", err
}