Skip to content
Snippets Groups Projects
Commit 90e580da authored by Alan De Smet's avatar Alan De Smet
Browse files

Fix DownloadFunctionsTests.test_download_all_timeout

This fixes the OTHER problem: the test files to download were too small
and could be plausibly retrieved within 1 second, so tests inside the
SSEC could fail to trigger the timeout.
parent f92e3cf3
Branches
No related tags found
No related merge requests found
......@@ -404,8 +404,7 @@ class DownloadFunctionsTests(DTestCase):
def test_download_all_timeout(self):
with TemporaryDirectory() as dir:
stats = csppfetch.DownloadStatistics()
url_to_dst = { f"http://geodb.ssec.wisc.edu/ancillary/2019_05_27_147/gfs.19052700_F{f:03d}.hdf" : dir+f"/f{f}" for f in range(3,22,3) }
url_to_dst = { "ftp://ftp.ssec.wisc.edu/pub/permanent/software/crtm/crtm_v2.3.0.tar.gz": 'tempfile'}
with self.assertRaises(csppfetch.timelimit.OutOfTime):
csppfetch.download_all(url_to_dst, stats, True, 1)
for file in url_to_dst.values():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment