Fixed the bug adding a function to check if a job has fixed repetitions before checking stats len and timesToRepeat to avoid problem in case of recurring job (timesToRepeat = -1). With tests.
Special thanks to @benwaine that help me on tests!
Coverage increased (+1.4%) to 80.541% when pulling 6c7b0825842cf6e0ea2beead78557dec021dbb63 on flypay:fix-issue-120 into bc173ddaf1be46142935088fde62d729b81aea1d on ajvb:master.
Issue: #120
Fixed the bug adding a function to check if a job has fixed repetitions before checking stats len and timesToRepeat to avoid problem in case of recurring job (timesToRepeat = -1). With tests.
Special thanks to @benwaine that help me on tests!