fake util.clock tick

This commit is contained in:
Jordan Liggitt
2016-04-06 13:06:46 -04:00
committed by deads2k
parent 290d970282
commit bf097ea233
3 changed files with 127 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ func newDelayingQueue(clock util.Clock) DelayingInterface {
ret := &delayingType{
Interface: New(),
clock: clock,
heartbeat: time.Tick(maxWait),
heartbeat: clock.Tick(maxWait),
stopCh: make(chan struct{}),
waitingForAddCh: make(chan waitFor, 1000),
}