feat: add NewTicker to clock testing library (#13593)

This commit is contained in:
Spike Curtis
2024-06-20 10:16:04 +04:00
committed by GitHub
parent 7049d7a881
commit 02ffff11dd
6 changed files with 216 additions and 17 deletions

View File

@ -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
}