Testing a Timer Fired


Is there a way to test that a timer was fired in the test suite? I looked in sample-go and didn’t see anything obvious.



Oh, I see. Thanks!

Using the GoSDK, is it possible to create a named timer so one can more easily test that timers are firing in an expected sequence? For now, this listener method is populating the timerID with 1 and 3– presumably the creation sequence for the timers. This makes the tests a bit brittle.

I don’t think it is currently possible. Here is the issue to get this added.