We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 310f6fc commit 7c911a8Copy full SHA for 7c911a8
1 file changed
mock_timer.go
@@ -55,12 +55,14 @@ func newMockTimerAt(
55
panic("duration cannot be 0")
56
}
57
58
+ advanceable.m.Lock()
59
t := &MockTimer{
60
advanceable: advanceable,
61
deadline: advanceable.now.Add(duration),
62
ch: make(chan time.Time),
63
f: f,
64
65
+ advanceable.m.Unlock()
66
67
go t.process()
68
advanceable.register(t)
0 commit comments