mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: add NewTicker to clock testing library (#13593)
This commit is contained in:
@ -64,6 +64,6 @@ func (t *Timer) Reset(d time.Duration, tags ...string) bool {
|
||||
t.mock.removeTimerLocked(t)
|
||||
t.stopped = false
|
||||
t.nxt = t.mock.cur.Add(d)
|
||||
t.mock.addTimerLocked(t)
|
||||
t.mock.addEventLocked(t)
|
||||
return result
|
||||
}
|
||||
|
Reference in New Issue
Block a user