]> source.dussan.org Git - gitea.git/commitdiff
Fixed individual markdown tests. (#15802)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Sun, 9 May 2021 13:29:49 +0000 (15:29 +0200)
committerGitHub <noreply@github.com>
Sun, 9 May 2021 13:29:49 +0000 (15:29 +0200)
modules/markup/markdown/markdown_test.go

index 5997dbccdcf952d5debef2c4bebaa5fc3d871f44..46a380aa6c2ee6f9ee9ee46b3a8a2922974487ba 100644 (file)
@@ -269,6 +269,9 @@ Here is a simple footnote,[^1] and here is a longer one.[^bignote]
 }
 
 func TestTotal_RenderWiki(t *testing.T) {
+       setting.AppURL = AppURL
+       setting.AppSubURL = AppSubURL
+
        answers := testAnswers(util.URLJoin(AppSubURL, "wiki/"), util.URLJoin(AppSubURL, "wiki", "raw/"))
 
        for i := 0; i < len(sameCases); i++ {
@@ -305,6 +308,9 @@ func TestTotal_RenderWiki(t *testing.T) {
 }
 
 func TestTotal_RenderString(t *testing.T) {
+       setting.AppURL = AppURL
+       setting.AppSubURL = AppSubURL
+
        answers := testAnswers(util.URLJoin(AppSubURL, "src", "master/"), util.URLJoin(AppSubURL, "raw", "master/"))
 
        for i := 0; i < len(sameCases); i++ {