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:
parent
2bc47e81a3
commit
388e7c9719
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue