mirror of
https://gitea.com/gitea/go-sdk
synced 2025-10-06 00:12:44 +02:00
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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user