mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
Remove retry test because we dont need to retry tool calls - the llm can just decide how to contine
This commit is contained in:
@@ -1029,24 +1029,6 @@ class TestParameterOrdering:
|
||||
assert action.name == 'extract_content'
|
||||
assert action.description == 'Extract content from page'
|
||||
|
||||
async def test_page_error_retry(self, registry, browser_session):
|
||||
"""Test that page errors trigger retry with fresh page"""
|
||||
call_count = 0
|
||||
|
||||
@registry.action('Flaky page action', param_model=SimpleParams)
|
||||
async def flaky_action(params: SimpleParams, page: Page):
|
||||
nonlocal call_count
|
||||
call_count += 1
|
||||
if call_count == 1:
|
||||
raise RuntimeError('page closed')
|
||||
return ActionResult(extracted_content=f'Success on attempt {call_count}')
|
||||
|
||||
# Should retry once and succeed
|
||||
result = await registry.execute_action('flaky_action', {'value': 'test'}, browser_session=browser_session)
|
||||
assert result.extracted_content is not None
|
||||
assert 'Success on attempt 2' in result.extracted_content
|
||||
assert call_count == 2
|
||||
|
||||
|
||||
class TestParamsModelArgsAndKwargs:
|
||||
async def test_browser_session_double_kwarg(self):
|
||||
|
||||
Reference in New Issue
Block a user