@@ -61,7 +61,7 @@ func TestTickerDrift(t *testing.T) {
6161 ticks := make ([]time.Time , 0 , 4 )
6262 ticks = addTicks (ticks , now , now .Add (time .Minute * 3 ), d , a )
6363
64- last := testTicker (t , now , d , a , times , ticks )
64+ last := testTicker (t , d , a , times , ticks )
6565 now = time .Now ()
6666 assert .True (t , now .Before (last ), fmt .Sprintln (now , "is not before" , last ))
6767}
@@ -79,7 +79,7 @@ func TestTickerAdjustment(t *testing.T) {
7979 ticks = append (ticks , now .Truncate (d ).Add (d ))
8080 ticks = addTicks (ticks , summer .Add (d * 2 ), summer .Add (d * 4 ), d , a )
8181
82- last := testTicker (t , now , d , a , times , ticks )
82+ last := testTicker (t , d , a , times , ticks )
8383 now = time .Now ()
8484 assert .True (t , now .After (last ), fmt .Sprintln (now , "is not after" , last ))
8585}
@@ -104,7 +104,7 @@ func TestTickerLostTick(t *testing.T) {
104104 }
105105 }
106106
107- last := testTicker (t , now , d , a , times , ticks )
107+ last := testTicker (t , d , a , times , ticks )
108108 now = time .Now ()
109109 assert .True (t , now .Before (last ), fmt .Sprintln (now , "is not before" , last ))
110110}
@@ -133,7 +133,9 @@ func addTicks(ticks []time.Time, start, end time.Time, d, a time.Duration) []tim
133133 return ticks
134134}
135135
136- func testTicker (t * testing.T , now time.Time , d , a time.Duration , times , ticks []time.Time ) time.Time {
136+ func testTicker (t * testing.T , d , a time.Duration , times , ticks []time.Time ) time.Time {
137+ t .Helper ()
138+
137139 newTicker = func (d time.Duration ) ticker {
138140 t := & mockTicker {
139141 c : make (chan time.Time , 4 ),
0 commit comments