We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f10f7f commit d4dbd83Copy full SHA for d4dbd83
mock.go
@@ -349,6 +349,7 @@ func (m *Mock) AdvanceNext() (time.Duration, AdvanceWaiter) {
349
defer close(w.ch)
350
defer m.mu.Unlock()
351
m.tb.Error("cannot AdvanceNext because there are no timers or tickers running")
352
+ return 0, w
353
}
354
d := m.nextTime.Sub(m.cur)
355
m.cur = m.nextTime
0 commit comments