Merge branch 'fix_code_timeout' into 'code_intepreter'

fix timeout

See merge request agents/data_agents_opt!46
This commit is contained in:
林义章 2024-01-15 03:10:29 +00:00
commit 7f0c752f8d
2 changed files with 10 additions and 2 deletions

View file

@ -96,4 +96,4 @@ async def test_run_with_timeout():
code = "import time; time.sleep(2)"
message, success = await pi.run(code)
assert not success
assert message == "TimeoutError"
assert message.startswith("Cell execution timed out")