diff --git a/models/unit_tests.go b/models/unit_tests.go index cbb10e383..61a524fb2 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -69,6 +69,7 @@ func MainTest(m *testing.M, pathToGiteaRoot string) { fatalTestError("url.Parse: %v\n", err) } + setting.Attachment.Path = filepath.Join(setting.AppDataPath, "attachments") if err = storage.Init(); err != nil { fatalTestError("storage.Init: %v\n", err) }