summaryrefslogtreecommitdiffstats
path: root/models/migrations/base/tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/base/tests.go')
-rw-r--r--models/migrations/base/tests.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/migrations/base/tests.go b/models/migrations/base/tests.go
index a9bcd20f67..2f1b246648 100644
--- a/models/migrations/base/tests.go
+++ b/models/migrations/base/tests.go
@@ -149,13 +149,13 @@ func MainTest(m *testing.M) {
setting.AppDataPath = tmpDataPath
setting.SetCustomPathAndConf("", "", "")
- setting.LoadForTest()
+ setting.InitProviderAndLoadCommonSettingsForTest()
if err = git.InitFull(context.Background()); err != nil {
fmt.Printf("Unable to InitFull: %v\n", err)
os.Exit(1)
}
- setting.InitDBConfig()
- setting.NewLogServices(true)
+ setting.LoadDBSetting()
+ setting.InitLogs(true)
exitStatus := m.Run()