mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
Use download.c parallel download api to download packs in parallel, the same way we do for fullfiles. Some changes were necessary in update/slow-server test. As we are using the parallel download api to download packs the resume strategy is now the same described in b07285. Because of that download resume is only enables when the download is interrupted in the first try. So we force a download fail and a download retry in server.py to check if swupd is trying to resume the download. Because of this change the update/slow-server test is performing 2 retries (first downloaded is interrupted to force a resume and the second is interrupted because the slow-server don't support download resumes) and this adds a 30 seconds delay to the test execution. This delay isn't going to slow down the test execution considerably, but the ideal is in the future to support running tests with 0s timeouts. For this reason update/slow-server is being skip when not running in travis ci.