返回提交历史
Modified
etc/unittest/mcp.py
+1
-1
XFEstudio/gpt4free
fix: adjust timeout assertion in security hardening tests to allow for longer execution time
6365699b
代码差异
1 个文件
+1
-1
@@ -536,7 +536,7 @@ class TestSecurityHardening(unittest.IsolatedAsyncioTestCase):
536
536
result = await tool.execute({"code": "while True: pass", "timeout": 0.5})
537
537
elapsed = time.time() - start
538
538
self.assertFalse(result.get("success"))
539
self.assertLess(elapsed, 3.0)
539
self.assertLess(elapsed, 3.5)
540
540
541
541
async def test_tool_safe_mode_ignores_timeout_param(self):
542
542
"""In safe mode, timeout parameter is ignored and default is used."""