clock
clock copied to clipboard
Allow resetting previously stopped tickers
Normal time.Tickers support being Stop()ed, then later restarted by calling Reset(). However, mocked clock.Tickers do not; once they are stopped they can never be restarted.
This PR fixes that behavior, and adds tests to ensure it isn't broken again.