XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

fix: adjust timeout assertion in security hardening tests to allow for longer execution time

6365699b
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified etc/unittest/mcp.py +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."""