[GITEA] Show manual cron run's last time (squash) 27 jobs in cron fixtures
(cherry picked from commitbb71759454
) (cherry picked from commitcc258d342e
) (cherry picked from commitf3c615e7d2
) (cherry picked from commit360ac8e69d
) (cherry picked from commit30c276085d
)
This commit is contained in:
parent
836836bd73
commit
aad366c085
|
@ -298,11 +298,11 @@ func TestAPICron(t *testing.T) {
|
|||
req := NewRequest(t, "GET", urlStr)
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
assert.Equal(t, "26", resp.Header().Get("X-Total-Count"))
|
||||
assert.Equal(t, "27", resp.Header().Get("X-Total-Count"))
|
||||
|
||||
var crons []api.Cron
|
||||
DecodeJSON(t, resp, &crons)
|
||||
assert.Len(t, crons, 26)
|
||||
assert.Len(t, crons, 27)
|
||||
})
|
||||
|
||||
t.Run("Execute", func(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue