Skip to content

Commit 05bc254

Browse files
author
Andrey Zelenchuk
committed
Fix (partially) test "tests/test_concurrent.py::test_message_order_in_subscribe_unsubscribe_all_loop[False-async]".
There is still a race: all calls to `unsubscribe` may finish before the subscription is registered.
1 parent 28632fc commit 05bc254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_concurrent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ async def test_message_order_in_subscribe_unsubscribe_all_loop(
732732
'complete' message.
733733
"""
734734

735-
NUMBER_OF_UNSUBSCRIBE_CALLS = 50 # pylint: disable=invalid-name
735+
NUMBER_OF_UNSUBSCRIBE_CALLS = 100 # pylint: disable=invalid-name
736736
# Delay in seconds.
737-
DELAY_BETWEEN_UNSUBSCRIBE_CALLS = 0.01 # pylint: disable=invalid-name
737+
DELAY_BETWEEN_UNSUBSCRIBE_CALLS = 0.02 # pylint: disable=invalid-name
738738
# Gradually stop the test if time is up.
739739
TIME_BORDER = 20 # pylint: disable=invalid-name
740740

0 commit comments

Comments
 (0)