From 3126dcaef618b2cbd1e272b35c4acc21270122b7 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Sat, 23 Nov 2024 20:50:14 +0100 Subject: [PATCH] benchmark, revert me --- tests/integration/test_background_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_background_task.py b/tests/integration/test_background_task.py index 70e2202a6..2804b1ef8 100644 --- a/tests/integration/test_background_task.py +++ b/tests/integration/test_background_task.py @@ -44,7 +44,7 @@ def BackgroundTask(): @rx.event(background=True) async def fast_yielding(self): - for _ in range(1000): + for _ in range(100000): yield State.increment() @rx.event @@ -409,4 +409,4 @@ def test_fast_yielding( assert background_task._poll_for(lambda: counter.text == "0", timeout=5) fast_yielding_button.click() - assert background_task._poll_for(lambda: counter.text == "1000", timeout=50) + assert background_task._poll_for(lambda: counter.text == "100000", timeout=1200)