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:
Lauris BH 2018-01-11 01:46:59 +02:00 committed by Kim "BKC" Carlbäcker
parent d8dff304c0
commit be1330ec89
8 changed files with 19 additions and 3 deletions

View file

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