Browse Source

fix test

master
Lunny Xiao yan 5 years ago
parent
commit
a6e9760c9d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/unit_tests.go

+ 1
- 0
models/unit_tests.go View File

@@ -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)
}


Loading…
Cancel
Save