From 388e7c9719da39cd4761a8c5bf58c43ee4127ec3 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 6 Oct 2024 07:35:19 +0200 Subject: [PATCH] Ensure `GetCSRF` doesn't return an empty token (#32130) (followup) Modifies the calls to createAttachment() for tests that do not exist in Gitea. --- tests/integration/issue_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()