We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da19b8 commit 1164301Copy full SHA for 1164301
src/crystal/tests/test_tasks.py
@@ -58,9 +58,9 @@ async def test_some_tasks_may_complete_immediately(subtests) -> None:
58
with subtests.test(task_type='DownloadResourceTask'):
59
# Download the resource
60
assert False == missing_r.already_downloaded_this_session
61
- missing_rr_future = missing_r.download() # uses DownloadResourceTask
+ dr_task = missing_r.download_with_task() # uses DownloadResourceTask
62
await wait_for(
63
- lambda: missing_rr_future.done() or None,
+ lambda: dr_task.complete or None,
64
timeout=MAX_TIME_TO_DOWNLOAD_404_URL)
65
assert True == missing_r.already_downloaded_this_session
66
0 commit comments