Timeout for stream file.

This commit is contained in:
grossmj committed 2018-06-10 21:18:16 +07:00
1 parent 34fcbd68f3
commit 45edc40948
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -295,8 +295,8 @@ def test_streamFile(project, async_run, compute):
response = MagicMock()
response.status = 200
with asyncio_patch("aiohttp.ClientSession.request", return_value=response) as mock:
async_run(compute.stream_file(project, "test/titi"))
mock.assert_called_with("GET", "https://example.com:84/v2/compute/projects/{}/stream/test/titi".format(project.id), auth=None, timeout=None)
async_run(compute.stream_file(project, "test/titi", timeout=120))
mock.assert_called_with("GET", "https://example.com:84/v2/compute/projects/{}/stream/test/titi".format(project.id), auth=None, timeout=120)
def test_downloadFile(project, async_run, compute):