Skip to content

Commit 2754a21

Browse files
authored
Merge pull request #4393 from alexandear/refactor/pkg-hostagent-use-const
refactor: use constant for sleep delay
2 parents 2df5112 + 0288a6d commit 2754a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/hostagent/requirements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (a *HostAgent) waitForRequirements(label string, requirements []requirement
4242
errs = append(errs, fmt.Errorf("failed to satisfy the %s requirement %d of %d %q: %s: %w", label, i+1, len(requirements), req.description, req.debugHint, err))
4343
break retryLoop
4444
}
45-
time.Sleep(10 * time.Second)
45+
time.Sleep(sleepDuration)
4646
}
4747
}
4848
return errors.Join(errs...)

0 commit comments

Comments
 (0)