Closed rjsab closed 6 years ago
@rjsabatini Would you mind including a regression test along side this change?
@ajvb I'm extremely new to Go, and particularly testing in go. I've been doing some research and could use a bit of guidance. Would this be a another assert
in the stats_test.go
, or a new test function?
@ajvb I made an attempt at the regression test. Let me know if isn't what you were expecting, and I'll be happy to make another attempt.
@rjsabatini This is really close! What I'd suggest is making a job with a much shorter schedule (can use GetMockJobWithSchedule
) and make sure that it's NextRunAt time is the same as what is returned by NewKalaStats
. Does that make sense?
Fix #146 to have NextRunAt report the earliest time instead of latest.