0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-21 17:58:48 +01:00
This commit is contained in:
Lunny Xiao 2026-02-20 15:58:03 -08:00
parent 39354871ba
commit ee6dcb9eae
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -24,7 +24,9 @@ func TestIssueTimeDeleteScoped(t *testing.T) {
session := loginUser(t, issue1.Repo.OwnerName)
url := fmt.Sprintf("/%s/%s/issues/%d/times/%d/delete", issue1.Repo.OwnerName, issue1.Repo.Name, issue1.Index, tracked.ID)
req := NewRequestWithValues(t, "POST", url, map[string]string{})
req := NewRequestWithValues(t, "POST", url, map[string]string{
"_csrf": GetUserCSRFToken(t, session),
})
session.MakeRequest(t, req, http.StatusNotFound)
tracked = unittest.AssertExistsAndLoadBean(t, &issues_model.TrackedTime{ID: tracked.ID})