Fix system tests

This commit is contained in:
Lorenzo Bolla committed 2022-01-27 09:30:14 +01:00
1 parent ff51c46915
commit 787cc8e3ee
51 files changed
+607 -66

No files matched your search

+2 -4
View File
@@ -224,10 +224,8 @@ func (context *AptlyContext) newDownloader(progress aptly.Progress) aptly.Downlo
maxTries := context.config().DownloadRetries + 1
maxTriesFlag := context.flags.Lookup("max-tries")
if maxTriesFlag != nil {
maxTriesFlagValue := maxTriesFlag.Value.Get().(int)
if maxTriesFlagValue > maxTries {
maxTries = maxTriesFlagValue
}
// If flag is defined prefer it to global setting
maxTries = maxTriesFlag.Value.Get().(int)
}
return http.NewDownloader(downloadLimit*1024, maxTries, progress)
}