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:
authorJames Fargher <jfargher@gitlab.com>2023-02-16 05:25:59 +0300
committerJames Fargher <jfargher@gitlab.com>2023-02-16 05:35:45 +0300
commit6b963294bfd8f9f0c4d42bd9d3b171e95ea76b53 (patch)
tree04fa3eeead5a17cf87dcd643d6e878f6eb8a8120 /internal/cache
parent25c246821e1eca78c2ac782adcc167eaeb383262 (diff)
tests: Fix incorrect executable permissions
Avoid giving the executable permission to normal files. Prefer using PublicFile and rely on umask restricting permissions further.
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/walker_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cache/walker_test.go b/internal/cache/walker_test.go
index 0d1722fc5..7f69c3e03 100644
--- a/internal/cache/walker_test.go
+++ b/internal/cache/walker_test.go
@@ -79,7 +79,7 @@ func TestDiskCacheInitialClear(t *testing.T) {
canary := filepath.Join(cacheDir, "canary.txt")
require.NoError(t, os.MkdirAll(filepath.Dir(canary), perm.SharedDir))
- require.NoError(t, os.WriteFile(canary, []byte("chirp chirp"), perm.SharedExecutable))
+ require.NoError(t, os.WriteFile(canary, []byte("chirp chirp"), perm.PublicFile))
cache := New(cfg, locator, withDisabledWalker())
require.NoError(t, cache.StartWalkers())