From 9c14e4f103de95dfb01fe73babf90fa5754cf2ab 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 --- 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 b1080c998a..23a17aa987 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -245,6 +245,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),