Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix tests

mertunsall6a447738da6b
diff --git a/tests/ci/test_tools.py b/tests/ci/test_tools.py
index d6fa85a40..cb53a9df4 100644
--- a/tests/ci/test_tools.py
+++ b/tests/ci/test_tools.py
@@ -161,7 +161,7 @@ class TestToolsIntegration:
assert 'Waited for' in result.extracted_content or 'Waiting for' in result.extracted_content
# Verify that approximately 1 second has passed (allowing some margin)
- assert end_time - start_time <= 0.5 # We wait 3-3 seconds for LLM call
+ assert end_time - start_time <= 2.5 # We wait 3-1 seconds for LLM call
# longer wait
# Record start time
@@ -178,7 +178,7 @@ class TestToolsIntegration:
assert result.extracted_content is not None
assert 'Waited for' in result.extracted_content or 'Waiting for' in result.extracted_content
- assert 1.5 <= end_time - start_time <= 2.5 # We wait 5-3 seconds for LLM call
+ assert 3.5 <= end_time - start_time <= 4.5 # We wait 5-1 seconds for LLM call
async def test_go_back_action(self, tools, browser_session, base_url):
"""Test that go_back action navigates to the previous page."""