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:
parent
f3ebdb8afe
commit
23e1316337
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue