diff --git a/lib/autoupdate/rollout/strategy_haltonerror.go b/lib/autoupdate/rollout/strategy_haltonerror.go index 4dacdb26ada84..c93438aaa1941 100644 --- a/lib/autoupdate/rollout/strategy_haltonerror.go +++ b/lib/autoupdate/rollout/strategy_haltonerror.go @@ -124,10 +124,10 @@ func (h *haltOnErrorStrategy) progressRollout(ctx context.Context, groups []*aut } func canStartHaltOnError(group, previousGroup *autoupdate.AutoUpdateAgentRolloutStatusGroup, now time.Time) (bool, error) { - // check wait days + // check wait hours if group.ConfigWaitHours != 0 { if previousGroup == nil { - return false, trace.BadParameter("The first group cannot have non-zero wait hours") + return false, trace.BadParameter("the first group cannot have non-zero wait hours") } previousStart := previousGroup.StartTime.AsTime() diff --git a/lib/autoupdate/rollout/strategy_haltonerror_test.go b/lib/autoupdate/rollout/strategy_haltonerror_test.go index 2b84672ad7166..71a653c760361 100644 --- a/lib/autoupdate/rollout/strategy_haltonerror_test.go +++ b/lib/autoupdate/rollout/strategy_haltonerror_test.go @@ -43,7 +43,7 @@ func Test_canStartHaltOnError(t *testing.T) { wantErr require.ErrorAssertionFunc }{ { - name: "first group, no wait_days", + name: "first group, no wait_hours", group: &autoupdate.AutoUpdateAgentRolloutStatusGroup{ Name: "test-group", ConfigDays: everyWeekday,