The given task is executed immediately by the scheduler.
(t *testing.T)
| 13 | |
| 14 | // The given task is executed immediately by the scheduler. |
| 15 | func TestTask_ExecuteImmediately(t *testing.T) { |
| 16 | f, wait := newFunc(t, 1) |
| 17 | defer startTask(t, f, task.Every(time.Second))() //nolint:revive |
| 18 | wait(100 * time.Millisecond) |
| 19 | } |
| 20 | |
| 21 | // The given task is executed again after the specified time interval has |
| 22 | // elapsed. |