From 9ce97ac6852dd3e54d4b9b967080778a5f7bc94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Thu, 2 Nov 2023 17:00:09 +0100 Subject: [PATCH] test POST /{owner}/{repo}/comments/{id} Conflicts: tests/integration/issue_test.go (cherry picked from commit 9c14e4f103de95dfb01fe73babf90fa5754cf2ab) --- tests/integration/issue_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 251c758bfb..0a0b13dcb2 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -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),