diff --git a/tests/test_e2e_v27.py b/tests/test_e2e_v27.py index 2e727e2..34e300e 100644 --- a/tests/test_e2e_v27.py +++ b/tests/test_e2e_v27.py @@ -741,7 +741,7 @@ class TestE9RealAgentDispatch: max_dispatch_per_tick=3, dispatcher=dispatcher, ) - result = asyncio.get_event_loop().run_until_complete(ticker.tick()) + result = asyncio.run(ticker.tick()) # 验证 tick 结果有调度 assert self.pid in result.get("projects", {}) @@ -784,7 +784,7 @@ class TestE9RealAgentDispatch: max_dispatch_per_tick=3, dispatcher=dispatcher, ) - result = asyncio.get_event_loop().run_until_complete(ticker.tick()) + result = asyncio.run(ticker.tick()) db_path = self.data_root / self.pid / "blackboard.db" bb = Blackboard(db_path)