mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-09 20:04:33 +01:00
Fix test
This commit is contained in:
parent
bcfeb2af3e
commit
73af079998
@ -304,7 +304,7 @@ 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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user