Skip to content

Commit

Permalink
[GITEA] Show manual cron run's last time (squash) 27 jobs in cron fix…
Browse files Browse the repository at this point in the history
…tures

(cherry picked from commit bb71759454071a3f555afdb33702e2af6037fc9b)
(cherry picked from commit cc258d342e80dd40d8107b6581c452d2b71c2598)
(cherry picked from commit f3c615e7d254e259357ff0b75873cb1551d8ccf5)
  • Loading branch information
earl-warren committed Sep 18, 2023
1 parent 223537f commit 360ac8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/api_admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 360ac8e

Please sign in to comment.