From 8473030628302f78a954b14d02b423cc180b2751 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 22 Aug 2023 11:14:33 +0200 Subject: [PATCH] [GITEA] Show manual cron run's last time (squash) 26 jobs in cron fixtures --- 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 58ee5e8582..4e222e22e6 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, "25", resp.Header().Get("X-Total-Count")) + assert.Equal(t, "26", resp.Header().Get("X-Total-Count")) var crons []api.Cron DecodeJSON(t, resp, &crons) - assert.Len(t, crons, 25) + assert.Len(t, crons, 26) }) t.Run("Execute", func(t *testing.T) {