From a6e9760c9d2d963e1cee8615fb884033cb8b7883 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 18 May 2020 09:21:39 +0800 Subject: [PATCH] fix test --- models/unit_tests.go | 1 + 1 file changed, 1 insertion(+) 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) }