Skip to content

Commit df24e61

Browse files
committed
tweak timeout
1 parent 0e542f7 commit df24e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def test_sync_raises(sync_loop: asyncio.AbstractEventLoop | None) -> None:
6161

6262

6363
def test_sync_timeout() -> None:
64-
duration = 0.004
64+
duration = 0.02
6565

6666
async def foo() -> None:
6767
await asyncio.sleep(duration)
6868

6969
with pytest.raises(asyncio.TimeoutError):
70-
sync(foo(), timeout=duration / 2)
70+
sync(foo(), timeout=duration / 10)
7171

7272

7373
def test_sync_raises_if_no_coroutine(sync_loop: asyncio.AbstractEventLoop | None) -> None:

0 commit comments

Comments
 (0)