1
0
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:
2022-05-15 06:22:02 +08:00
parent f3ebdb8afe
commit 23e1316337

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)
}