Skip to content

Commit

Permalink
benchmark, revert me
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher committed Nov 23, 2024
1 parent 1fabe33 commit a3fd2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_background_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def handle_event_yield_only(self):

@rx.event(background=True)
async def fast_yielding(self):
for _ in range(1000):
for _ in range(100000):
yield State.increment()

@rx.event
Expand Down Expand Up @@ -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)

0 comments on commit a3fd2d7

Please sign in to comment.