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 0e542f7 commit df24e61Copy full SHA for df24e61
tests/test_sync.py
@@ -61,13 +61,13 @@ def test_sync_raises(sync_loop: asyncio.AbstractEventLoop | None) -> None:
61
62
63
def test_sync_timeout() -> None:
64
- duration = 0.004
+ duration = 0.02
65
66
async def foo() -> None:
67
await asyncio.sleep(duration)
68
69
with pytest.raises(asyncio.TimeoutError):
70
- sync(foo(), timeout=duration / 2)
+ sync(foo(), timeout=duration / 10)
71
72
73
def test_sync_raises_if_no_coroutine(sync_loop: asyncio.AbstractEventLoop | None) -> None:
0 commit comments