1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

test: init bot storage path

This commit is contained in:
Jason Song 2022-11-28 17:19:15 +08:00
parent 0c1d568e1d
commit dccddd045e
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -105,6 +105,8 @@ func MainTest(m *testing.M, testOpts *TestOptions) {
setting.Packages.Storage.Path = filepath.Join(setting.AppDataPath, "packages")
setting.Bots.Storage.Path = filepath.Join(setting.AppDataPath, "bots_log")
setting.Git.HomePath = filepath.Join(setting.AppDataPath, "home")
if err = storage.Init(); err != nil {