[GITEA] Show manual cron run's last time (squash) 26 jobs in cron fixtures
This commit is contained in:
parent
f61505281c
commit
8473030628
|
@ -298,11 +298,11 @@ func TestAPICron(t *testing.T) {
|
||||||
req := NewRequest(t, "GET", urlStr)
|
req := NewRequest(t, "GET", urlStr)
|
||||||
resp := MakeRequest(t, req, http.StatusOK)
|
resp := MakeRequest(t, req, http.StatusOK)
|
||||||
|
|
||||||
assert.Equal(t, "25", resp.Header().Get("X-Total-Count"))
|
assert.Equal(t, "26", 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, 25)
|
assert.Len(t, crons, 26)
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("Execute", func(t *testing.T) {
|
t.Run("Execute", func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue