Skip to content

Commit 73d1588

Browse files
mergify[bot]rdner
andauthored
Increase the download timeout to make the test more stable (#4631) (#4635)
Seems like on very slow machines this test still fails, this new timeout should make sure it does not happen. (cherry picked from commit f3b4eec) Co-authored-by: Denis <denis.rechkunov@elastic.co>
1 parent fe984fd commit 73d1588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pkg/agent/application/upgrade/step_download_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ func TestDownloadWithRetries(t *testing.T) {
231231
// Download timeout expired (before all retries are exhausted)
232232
t.Run("download_timeout_expired", func(t *testing.T) {
233233
testCaseSettings := settings
234-
testCaseSettings.Timeout = 200 * time.Millisecond
234+
testCaseSettings.Timeout = 500 * time.Millisecond
235235
testCaseSettings.RetrySleepInitDuration = 10 * time.Millisecond
236-
// exponential backoff with 10ms init and 200ms timeout should fit at least 3 attempts.
236+
// exponential backoff with 10ms init and 500ms timeout should fit at least 3 attempts.
237237
minNmExpectedAttempts := 3
238238

239239
mockDownloaderCtor := func(version *agtversion.ParsedSemVer, log *logger.Logger, settings *artifact.Config, upgradeDetails *details.Details) (download.Downloader, error) {

0 commit comments

Comments
 (0)