mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
[GITEA] Simplify cron list test (squash)
- As per https://codeberg.org/forgejo/forgejo/pulls/1352#issuecomment-1076074 - Only test if the returned stuff is correct, not necessarily accurate. (cherry picked from commit55bcaf60ec
) (cherry picked from commit4f03e48106
) (cherry picked from commitf35c31b9be
) (cherry picked from commitd08f486da2
)
This commit is contained in:
parent
30c276085d
commit
5d035c01c5
1 changed files with 3 additions and 2 deletions
|
@ -298,11 +298,12 @@ func TestAPICron(t *testing.T) {
|
|||
req := NewRequest(t, "GET", urlStr)
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
assert.Equal(t, "27", resp.Header().Get("X-Total-Count"))
|
||||
assert.NotEmpty(t, resp.Header().Get("X-Total-Count"))
|
||||
|
||||
var crons []api.Cron
|
||||
DecodeJSON(t, resp, &crons)
|
||||
assert.Len(t, crons, 27)
|
||||
|
||||
assert.NotEmpty(t, crons)
|
||||
})
|
||||
|
||||
t.Run("Execute", func(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue