From dccddd045ef034fda0e076adaacafcf7581045b8 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Mon, 28 Nov 2022 17:19:15 +0800 Subject: [PATCH] test: init bot storage path --- models/unittest/testdb.go | 2 ++ 1 file changed, 2 insertions(+) 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 {