@@ -609,14 +609,14 @@ func TestJob_NextRuns(t *testing.T) {
609609 tests := []struct {
610610 name string
611611 jd JobDefinition
612- assertion func (t * testing.T , iteration int , previousRun , nextRun time.Time )
612+ assertion func (t * testing.T , previousRun , nextRun time.Time )
613613 }{
614614 {
615615 "simple - milliseconds" ,
616616 DurationJob (
617617 100 * time .Millisecond ,
618618 ),
619- func (t * testing.T , _ int , previousRun , nextRun time.Time ) {
619+ func (t * testing.T , previousRun , nextRun time.Time ) {
620620 assert .Equal (t , previousRun .UnixMilli ()+ 100 , nextRun .UnixMilli ())
621621 },
622622 },
@@ -629,7 +629,7 @@ func TestJob_NextRuns(t *testing.T) {
629629 NewAtTime (0 , 0 , 0 ),
630630 ),
631631 ),
632- func (t * testing.T , iteration int , previousRun , nextRun time.Time ) {
632+ func (t * testing.T , previousRun , nextRun time.Time ) {
633633 // With the fix for NextRun accuracy, the immediate run (Jan 1) is removed
634634 // from nextScheduled after it completes. So all intervals should be 14 days
635635 // (2 weeks as configured).
@@ -670,7 +670,7 @@ func TestJob_NextRuns(t *testing.T) {
670670 // skipping because there is no previous run
671671 continue
672672 }
673- tt .assertion (t , i , nextRuns [i - 1 ], nextRuns [i ])
673+ tt .assertion (t , nextRuns [i - 1 ], nextRuns [i ])
674674 }
675675
676676 assert .NoError (t , s .Shutdown ())
0 commit comments