From ed66bb5cd8e561e19a2b00f884d4b2fc9a680b8e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 29 Aug 2023 10:33:02 +0200 Subject: [PATCH] [GITEA] Show manual cron run's last time (squash) 27 jobs in cron fixtures (cherry picked from commit bb71759454071a3f555afdb33702e2af6037fc9b) (cherry picked from commit cc258d342e80dd40d8107b6581c452d2b71c2598) (cherry picked from commit f3c615e7d254e259357ff0b75873cb1551d8ccf5) (cherry picked from commit 360ac8e69d69f7306e74cf476b3b5f16d8fe6163) (cherry picked from commit 30c276085dccdbfd07eea47813fcdee7c9646e5d) (cherry picked from commit aad366c085e5cf513083bbec1f7c749623040b4a) (cherry picked from commit 67dbc3fda78ce1b04f443c4304f82a39ff943281) --- tests/integration/api_admin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go index 4e222e22e6..85b9103e53 100644 --- a/tests/integration/api_admin_test.go +++ b/tests/integration/api_admin_test.go @@ -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) {