jonboulle / clockwork

a fake clock for golang
Apache License 2.0
625 stars 57 forks source link

Fake Timer may report the same time twice #42

Closed gagern closed 1 year ago

gagern commented 2 years ago

I noticed that there appears to be a race condition in the fake timer implementation. If Reset gets called multiple times then apparently it can schedule multiple channel events. I will upload a commit demonstrating the issue.

sagikazarmark commented 2 years ago

Thanks @gagern ! If you can also contribute a patch, it would be great!