summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2024-10-06 07:35:19 +0200
committerEarl Warren <contact@earl-warren.org>2024-10-06 07:35:19 +0200
commit388e7c9719da39cd4761a8c5bf58c43ee4127ec3 (patch)
tree4d2720605812faf87f063a5dcdeb88553ead8617
parentEnsure `GetCSRF` doesn't return an empty token (#32130) (diff)
downloadforgejo-388e7c9719da39cd4761a8c5bf58c43ee4127ec3.tar.xz
forgejo-388e7c9719da39cd4761a8c5bf58c43ee4127ec3.zip
Ensure `GetCSRF` doesn't return an empty token (#32130) (followup)
Modifies the calls to createAttachment() for tests that do not exist in Gitea.
-rw-r--r--tests/integration/issue_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go
index 909242efc6..c5e24b0c00 100644
--- a/tests/integration/issue_test.go
+++ b/tests/integration/issue_test.go
@@ -500,7 +500,7 @@ func TestIssueCommentAttachment(t *testing.T) {
link, exists := htmlDoc.doc.Find("#comment-form").Attr("action")
assert.True(t, exists, "The template has changed")
- uuid := createAttachment(t, session, repoURL, "image.png", generateImg(), http.StatusOK)
+ uuid := createAttachment(t, session, GetCSRF(t, session, repoURL), repoURL, "image.png", generateImg(), http.StatusOK)
commentCount := htmlDoc.doc.Find(".comment-list .comment .render-content").Length()