mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 01:19:13 +02:00
Remove hardcoded paths to fix randomly failing tests (#3347)
* Remove hardcoded paths to fix randomly failing tests * Use correct function for merge path
This commit is contained in:
1 parent
d8dff304c0
commit
be1330ec89
8 files changed
+19
-3
No files matched your search
+1
-1
@@ -145,7 +145,7 @@ func TestRepository_InitWiki(t *testing.T) {
|
||||
func TestRepository_LocalWikiPath(t *testing.T) {
|
||||
PrepareTestEnv(t)
|
||||
repo := AssertExistsAndLoadBean(t, &Repository{ID: 1}).(*Repository)
|
||||
expected := filepath.Join(setting.AppDataPath, "tmp/local-wiki/1")
|
||||
expected := filepath.Join(setting.AppDataPath, setting.Repository.Local.LocalWikiPath, "1")
|
||||
assert.Equal(t, expected, repo.LocalWikiPath())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user