Relax TestAdminCronTasks (#591)

Relax test since this will be variable upstream ...

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/591
Reviewed-by: Gusted <williamzijl7@hotmail.com>
This commit is contained in:
6543 2022-05-15 06:22:02 +08:00
parent f3ebdb8afe
commit 23e1316337
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func TestAdminCronTasks(t *testing.T) {
tasks, _, err := c.ListCronTasks(ListCronTaskOptions{})
assert.NoError(t, err)
assert.Len(t, tasks, 21)
assert.True(t, len(tasks) > 15)
_, err = c.RunCronTasks(tasks[0].Name)
assert.NoError(t, err)
}