diff --git a/client/restarts_test.go b/client/restarts_test.go index e27f10390..9d5b59bb4 100644 --- a/client/restarts_test.go +++ b/client/restarts_test.go @@ -39,7 +39,12 @@ func TestTaskRunner_BatchRestartCounter(t *testing.T) { attempts := 2 interval := 1 * time.Second delay := 1 * time.Second - rt := newRestartTracker(structs.JobTypeBatch, &structs.RestartPolicy{Attempts: attempts, Interval: interval, Delay: delay}) + rt := newRestartTracker(structs.JobTypeBatch, + &structs.RestartPolicy{Attempts: attempts, + Interval: interval, + Delay: delay, + }, + ) for i := 0; i < attempts; i++ { shouldRestart, when := rt.nextRestart() if !shouldRestart {