Convenience around task.Start which also makes sure that the stop function of the task actually terminates.
(t *testing.T, f task.Func, schedule task.Schedule)
| 131 | // Convenience around task.Start which also makes sure that the stop function |
| 132 | // of the task actually terminates. |
| 133 | func startTask(t *testing.T, f task.Func, schedule task.Schedule) func() { |
| 134 | stop, _ := task.Start(context.Background(), f, schedule) |
| 135 | return func() { |
| 136 | assert.NoError(t, stop(time.Second)) |
| 137 | } |
| 138 | } |
no test coverage detected
searching dependent graphs…