fine tune

This commit is contained in:
wxiaoguang
2026-04-25 16:11:02 +08:00
parent 3359227aec
commit 5204ef97d3
3 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ func SetupGiteaTestEnv() {
giteaConf = "custom/conf/app-test-tmp.ini"
customConfBuiltin = filepath.Join(AppWorkPath, giteaConf)
CustomConf = customConfBuiltin
_ = os.WriteFile(CustomConf, []byte(os.Getenv("GITEA_TEST_CONF_CONTENT")), os.ModePerm)
_ = os.WriteFile(CustomConf, []byte(os.Getenv("GITEA_TEST_CONF_CONTENT")), 0o644)
} else {
// CustomConf must be absolute path to make tests pass,
CustomConf = filepath.Join(AppWorkPath, giteaConf)