chore: refactor StaticRootPath (#39384)

When need to use some settings in testing code, always call `SetupGiteaTestEnv`
This commit is contained in:
wxiaoguang
2026-09-22 22:49:36 +08:00
committed by GitHub
parent de5913d647
commit 7637b1b816
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const (
)
func TestMain(m *testing.M) {
setting.StaticRootPath = "../../"
setting.SetupGiteaTestEnv()
setting.Names = []string{"english"}
setting.Langs = []string{"en-US"}
// setup