test POST /{owner}/{repo}/comments/{id}

Conflicts:
	tests/integration/issue_test.go

(cherry picked from commit 9c14e4f103)
This commit is contained in:
Loïc Dachary 2023-11-02 17:00:09 +01:00
parent ed87de558f
commit 9ce97ac685
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -244,6 +244,8 @@ func TestIssueCommentUpdate(t *testing.T) {
"content": modifiedContent,
})
session.MakeRequest(t, req, http.StatusNotFound)
commentIdentical := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: commentID})
assert.Equal(t, comment1, commentIdentical.Content)
req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/comments/%d", "user2", "repo1", commentID), map[string]string{
"_csrf": GetCSRF(t, session, issueURL),