jonboulle / clockwork

a fake clock for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fake Timer may report the same time twice

gagern opened this issue · comments

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.

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