mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-21 17:58:48 +01:00
Fix test
This commit is contained in:
parent
39354871ba
commit
ee6dcb9eae
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user