1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-28 09:21:13 -05:00

Ensure GetCSRF doesn't return an empty token (#32130) (followup)

Modifies the calls to createAttachment() for tests that do not exist
in Gitea.
This commit is contained in:
Earl Warren 2024-10-06 07:35:19 +02:00
parent 2bc47e81a3
commit 388e7c9719
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

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