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-07 22:55:46 +0300
committerJames Fargher <jfargher@gitlab.com>2023-02-08 22:41:28 +0300
commit8e36d58e5c9bbe2844a75a12f82d726ee863ee47 (patch)
treea07de3666c3b2e99fc5175b039020ef52ac1bc0d
parent2e3f4c42cd2f9ea42d830e0e214eae39522b30d5 (diff)
housekeeping: Change test file permissions from 770 to 644
These "group private executable" permissions are only used in this test. Instead of creating a constant for this, we just convert it to a more common permission.
-rw-r--r--internal/git/housekeeping/clean_stale_data_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/git/housekeeping/clean_stale_data_test.go b/internal/git/housekeeping/clean_stale_data_test.go
index 3352764da..726d2afde 100644
--- a/internal/git/housekeeping/clean_stale_data_test.go
+++ b/internal/git/housekeeping/clean_stale_data_test.go
@@ -214,7 +214,7 @@ func TestRepositoryManager_CleanStaleData(t *testing.T) {
name: "oldtempfile",
entries: []entry{
d("objects", 0o700, 240*time.Hour, Keep,
- f("tmp_a", 0o770, 240*time.Hour, Delete),
+ f("tmp_a", 0o655, 240*time.Hour, Delete),
f("b", 0o700, 24*time.Hour, Keep),
),
},
@@ -263,9 +263,9 @@ func TestRepositoryManager_CleanStaleData(t *testing.T) {
{
name: "files outside of object database",
entries: []entry{
- f("tmp_a", 0o770, 240*time.Hour, Keep),
+ f("tmp_a", 0o655, 240*time.Hour, Keep),
d("info", 0o700, 240*time.Hour, Keep,
- f("tmp_a", 0o770, 240*time.Hour, Keep),
+ f("tmp_a", 0o655, 240*time.Hour, Keep),
),
},
},