Skip to content

Commit ef625bf

Browse files
committed
Flaky test test_ensure_task_limit_window_passed
Try to make the test less flaky by making the iteration wait time equal to the exception_limit_window and reducing the exception_limit from 3 to 2. This should still catch the case in question, but be less timing dependent.
1 parent fd6e111 commit ef625bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/units/utils/test_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ async def faulty_coro():
9090
coro_function=faulty_coro,
9191
suppress_exceptions=[ValueError],
9292
exception_delay=0,
93-
exception_limit=3,
94-
exception_limit_window=0.1,
93+
exception_limit=2,
94+
exception_limit_window=0.05,
9595
)
9696

9797
with contextlib.suppress(asyncio.CancelledError), pytest.raises(RuntimeError):

0 commit comments

Comments
 (0)