diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 2e6c25ae48..ded99119a0 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -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 {