mirror of
1
Fork 0

[GITEA] Show manual cron run's last time (squash) 27 jobs in cron fixtures

(cherry picked from commit bb71759454)
This commit is contained in:
Earl Warren 2023-08-29 10:33:02 +02:00
parent 0a24a819a9
commit cc258d342e
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 2 additions and 2 deletions

View File

@ -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) {