Skip to content

Commit

Permalink
make tests compatible with older python
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Nov 25, 2023
1 parent 3c6e3d1 commit 43b705f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ async def test_worker_ignore_fields(httpserver: HTTPServer):
task = asyncio.create_task(
worker(requests, results, session, worker_id, url, ignore_fields)
)
async with asyncio.timeout(10):
await requests.join()
await asyncio.wait_for(requests.join(), timeout=10)
assert results.qsize() == 1
result = await results.get()
assert result == {"request": dummy_request, "response": dummy_data}
Expand Down

0 comments on commit 43b705f

Please sign in to comment.