sources: run all tests for curl with both old and new curl
To ensure there are no regressions with the old curl make sure to run all tests that fetch_all() with both old and new curl.
This commit is contained in:
parent
0d3a153c78
commit
018c15aae8
2 changed files with 30 additions and 16 deletions
|
|
@ -251,6 +251,7 @@ class CurlSource(sources.SourceService):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.subscriptions = None
|
||||
self._curl_has_parallel_downloads = curl_has_parallel_downloads()
|
||||
|
||||
def amend_secrets(self, checksum, desc_or_url):
|
||||
if not isinstance(desc_or_url, dict):
|
||||
|
|
@ -281,7 +282,7 @@ class CurlSource(sources.SourceService):
|
|||
filtered = filter(lambda i: not self.exists(i[0], i[1]), items.items()) # discards items already in cache
|
||||
amended = map(lambda i: self.amend_secrets(i[0], i[1]), filtered)
|
||||
|
||||
if curl_has_parallel_downloads():
|
||||
if self._curl_has_parallel_downloads:
|
||||
self._fetch_all_new_curl(amended)
|
||||
else:
|
||||
self._fetch_all_old_curl(amended)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue