Files
MealQuest/internal/scheduler/export_test.go
T

10 lines
226 B
Go
Raw Normal View History

package scheduler
import "time"
// SetClock makes now the clock and after the timer s fires by.
func SetClock(s *Scheduler, now func() time.Time, after func(time.Duration) <-chan time.Time) {
s.now = now
s.after = after
}