mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-22 05:10:54 +00:00
Fix test
This commit is contained in:
parent
0295c7bf01
commit
551f8ba25e
@ -304,11 +304,11 @@ func TestAPICron(t *testing.T) {
|
|||||||
AddTokenAuth(token)
|
AddTokenAuth(token)
|
||||||
resp := MakeRequest(t, req, http.StatusOK)
|
resp := MakeRequest(t, req, http.StatusOK)
|
||||||
|
|
||||||
assert.Equal(t, "29", resp.Header().Get("X-Total-Count"))
|
assert.Equal(t, "30", resp.Header().Get("X-Total-Count"))
|
||||||
|
|
||||||
var crons []api.Cron
|
var crons []api.Cron
|
||||||
DecodeJSON(t, resp, &crons)
|
DecodeJSON(t, resp, &crons)
|
||||||
assert.Len(t, crons, 29)
|
assert.Len(t, crons, 30)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Execute", func(t *testing.T) {
|
t.Run("Execute", func(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user