From 932a26cbb3be1e12a52b6d4e1656b7c6edb0e35e Mon Sep 17 00:00:00 2001 From: lidanyang Date: Mon, 15 Jan 2024 10:50:08 +0800 Subject: [PATCH] update unittest --- tests/metagpt/actions/test_execute_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/metagpt/actions/test_execute_code.py b/tests/metagpt/actions/test_execute_code.py index 8340272e4..904cc3c58 100644 --- a/tests/metagpt/actions/test_execute_code.py +++ b/tests/metagpt/actions/test_execute_code.py @@ -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")