Skip to content

Commit 2d8ae80

Browse files
committed
Improve test documentation with correct issue number and better terminology
1 parent 3e7fed1 commit 2d8ae80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_primitives/test_reawaitable/test_reawaitable_concurrency.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from returns.primitives.reawaitable import ReAwaitable, reawaitable
55

66

7-
# Fix for issue with multiple awaits on the same ReAwaitable instance
8-
# causing race conditions: https://github.com/dry-python/returns/issues/2048
7+
# Fix for issue with multiple awaits on the same ReAwaitable instance:
8+
# https://github.com/dry-python/returns/issues/2108
99
async def sample_coro() -> str:
10-
"""Sample coroutine for testing."""
10+
"""Sample coroutine that simulates an async operation."""
1111
await anyio.sleep(1) # Increased from 0.1 to reduce chance of random failures
1212
return 'done'
1313

@@ -19,7 +19,7 @@ async def await_helper(awaitable_obj) -> str:
1919

2020
@pytest.mark.anyio
2121
async def test_concurrent_awaitable() -> None:
22-
"""Test that ReAwaitable works with concurrent awaits."""
22+
"""Test that ReAwaitable safely handles concurrent awaits using a lock."""
2323
test_target = ReAwaitable(sample_coro())
2424

2525
async with anyio.create_task_group() as tg:

0 commit comments

Comments
 (0)