summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEarl Warren <earl-warren@noreply.codeberg.org>2025-01-17 02:58:00 +0100
committerEarl Warren <earl-warren@noreply.codeberg.org>2025-01-17 02:58:00 +0100
commit387f590d9cba132f46680dc4db6f052fad8f063f (patch)
treeafae910c0a04093169853e05c6f43aeff5cc2b2c /tests
parentRemove source branch from pr list, fix #5009, #6080 (#6522) (diff)
parentchore(performance): loadCommentsByType sets Issues (diff)
downloadforgejo-387f590d9cba132f46680dc4db6f052fad8f063f.tar.xz
forgejo-387f590d9cba132f46680dc4db6f052fad8f063f.zip
[gitea] week 2025-03 cherry pick (gitea/main -> forgejo) (#6539)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6539 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/fuzz_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fuzz/fuzz_test.go b/tests/fuzz/fuzz_test.go
index 25a6ed8213..d16f26c085 100644
--- a/tests/fuzz/fuzz_test.go
+++ b/tests/fuzz/fuzz_test.go
@@ -27,6 +27,7 @@ var renderContext = markup.RenderContext{
func FuzzMarkdownRenderRaw(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
+ setting.IsInTesting = true
setting.AppURL = "http://localhost:3000/"
markdown.RenderRaw(&renderContext, bytes.NewReader(data), io.Discard)
})
@@ -34,6 +35,7 @@ func FuzzMarkdownRenderRaw(f *testing.F) {
func FuzzMarkupPostProcess(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
+ setting.IsInTesting = true
setting.AppURL = "http://localhost:3000/"
markup.PostProcess(&renderContext, bytes.NewReader(data), io.Discard)
})