把 timeout 调长一点

This commit is contained in:
2026-02-25 16:24:19 +08:00
parent 34175e8c17
commit df409a13a9

View File

@ -15,7 +15,7 @@ async def render_error_message(message: str) -> UniMessage[Any]:
"""
async def page_function(page: Page):
await page.wait_for_function("typeof setContent === 'function'", timeout=1000)
await page.wait_for_function("typeof setContent === 'function'", timeout=3000)
await page.evaluate(
"""(message) => {return setContent(message);}""",
message,