diff --git a/danding_bot/plugins/group_horse_racing/test_commands.py b/danding_bot/plugins/group_horse_racing/test_commands.py index 5516dbe..3722b3f 100644 --- a/danding_bot/plugins/group_horse_racing/test_commands.py +++ b/danding_bot/plugins/group_horse_racing/test_commands.py @@ -196,7 +196,7 @@ class _InMemoryPointsService: async def get_balance(self, user_id: str) -> int: self.calls.append(("get_balance", {"user_id": user_id})) - return 0 + return 8888 class _NoopMessageService: @@ -315,7 +315,7 @@ async def handle_test_simulate_race(bot: Bot, event: Event): await test_simulate_race_cmd.send("阶段:执行赛程(后台任务)") start_task = asyncio.create_task(commands_mod.run_race_with_settlement(fake_bot, room, scope)) commands_mod.race_engine.register_task(scope, start_task) - await asyncio.wait_for(start_task, timeout=60 if stream_progress else 15) + await asyncio.wait_for(start_task, timeout=180 if stream_progress else 30) messages = [str(m.get("message", "")) for m in fake_bot.messages] if not messages: