We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8881e1b commit ff9a1d1Copy full SHA for ff9a1d1
models/unit_tests.go
@@ -67,9 +67,11 @@ func MainTest(m *testing.M, pathToGiteaRoot string) {
67
if err != nil {
68
fatalTestError("url.Parse: %v\n", err)
69
}
70
+ setting.Attachment.Storage.Type = setting.LocalStorageType
71
+ setting.Attachment.Storage.Path = filepath.Join(setting.AppDataPath, "attachments")
72
- setting.Attachment.Path = filepath.Join(setting.AppDataPath, "attachments")
- setting.LFS.Path = filepath.Join(setting.AppDataPath, "lfs")
73
+ setting.LFS.Storage.Type = setting.LocalStorageType
74
+ setting.LFS.Storage.Path = filepath.Join(setting.AppDataPath, "lfs")
75
if err = storage.Init(); err != nil {
76
fatalTestError("storage.Init: %v\n", err)
77
0 commit comments