diff options
author | James Fargher <jfargher@gitlab.com> | 2023-02-08 00:57:29 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2023-02-08 22:41:28 +0300 |
commit | 2b9a550adc4b7af4bac8332aa1574baf1483f736 (patch) | |
tree | 76967a6fafd8f9ec6811b3050715a5fbab22509c | |
parent | ebc36ede905f6e16645e33b346bba491fcc12e1f (diff) |
housekeeping: Rearrange function calls to be in correct order
Since these function calls were using untyped constants, the compiler
hadn't picked up that the order of the parameters is wrong. This wont
work once we start using typed permission constants.
-rw-r--r-- | internal/git/housekeeping/clean_stale_data_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/git/housekeeping/clean_stale_data_test.go b/internal/git/housekeeping/clean_stale_data_test.go index dd65c03d2..22d0ee077 100644 --- a/internal/git/housekeeping/clean_stale_data_test.go +++ b/internal/git/housekeeping/clean_stale_data_test.go @@ -722,17 +722,17 @@ func TestRepositoryManager_CleanStaleData_serverInfo(t *testing.T) { entries := []entry{ d("info", perm.SharedDir, 0, Keep, - f("ref", 0, 0o644, Keep), - f("refs", 0, 0o644, Delete), - f("refsx", 0, 0o644, Keep), - f("refs_123456", 0, 0o644, Delete), + f("ref", 0o644, 0, Keep), + f("refs", 0o644, 0, Delete), + f("refsx", 0o644, 0, Keep), + f("refs_123456", 0o644, 0, Delete), ), d("objects", perm.SharedDir, 0, Keep, d("info", perm.SharedDir, 0, Keep, - f("pack", 0, 0o644, Keep), - f("packs", 0, 0o644, Delete), - f("packsx", 0, 0o644, Keep), - f("packs_123456", 0, 0o644, Delete), + f("pack", 0o644, 0, Keep), + f("packs", 0o644, 0, Delete), + f("packsx", 0o644, 0, Keep), + f("packs_123456", 0o644, 0, Delete), ), ), } |