From a56a62a4df29fde9a34ea2a09e9c351d3ea96699 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 10 Apr 2022 20:10:20 +0800 Subject: [PATCH] Update length of cron tasks (#578) - Bump amount of cron tasks that the dev image of Gitea has to 21. - Fix TestAdminCronTasks. Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/578 Reviewed-by: techknowlogick Reviewed-by: Lunny Xiao Co-authored-by: Gusted Co-committed-by: Gusted --- gitea/admin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/admin_test.go b/gitea/admin_test.go index cbb67c9..1dbe68e 100644 --- a/gitea/admin_test.go +++ b/gitea/admin_test.go @@ -45,7 +45,7 @@ func TestAdminCronTasks(t *testing.T) { tasks, _, err := c.ListCronTasks(ListCronTaskOptions{}) assert.NoError(t, err) - assert.Len(t, tasks, 19) + assert.Len(t, tasks, 21) _, err = c.RunCronTasks(tasks[0].Name) assert.NoError(t, err) }