From b23784d65b04edfcf8c587be39c060e1f98ac2d6 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Mon, 19 Oct 2026 11:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E7=A1=AE=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=85=88=E7=AD=89=E8=BF=90=E8=A1=8C=E5=81=9C?= =?UTF-8?q?=E5=88=B0=E7=A1=AE=E8=AE=A4=E4=B8=8A=E5=86=8D=E5=8E=BB=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=EF=BC=9A=E5=BE=85=E5=8A=9E=E5=92=8C=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E4=B8=AA=E4=BA=8B=E5=8A=A1=E5=BC=80=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=EF=BC=8C=E9=82=A3=E4=B8=80=E5=88=BB=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E8=BF=98=E6=B2=A1=E6=94=B6=E6=88=90=20interr?= =?UTF-8?q?upted=EF=BC=8CPostgreSQL=E3=80=81=E5=B9=B6=E8=A1=8C=E8=B7=91?= =?UTF-8?q?=E6=97=B6=E5=81=B6=E5=8F=91=E3=80=8C=E8=BF=90=E8=A1=8C=E6=AD=A3?= =?UTF-8?q?=E5=9C=A8=E8=BF=90=E8=A1=8C=EF=BC=8C=E6=B2=A1=E6=9C=89=E5=BE=85?= =?UTF-8?q?=E5=A4=84=E7=90=86=E7=9A=84=E5=AE=A1=E6=89=B9=E3=80=8D=E3=80=82?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=9A=84=E7=AB=9E=E6=80=81=EF=BC=8C=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=A1=8C=E4=B8=BA=E4=B8=8D=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_process_actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/tests/test_process_actions.py b/backend/tests/test_process_actions.py index c093f98d..0042e952 100644 --- a/backend/tests/test_process_actions.py +++ b/backend/tests/test_process_actions.py @@ -96,7 +96,9 @@ async def _events(run_id: str, kind: str) -> list[RunEvent]: async def _confirm(run_id: str) -> Task: - """等确认卡出来,按卡上的内容指纹确认。""" + """等运行停到确认上、确认卡出来,按卡上的内容指纹确认。待办和审批同一个事务开出来,那一刻运行可能还没收成 interrupted、 + 还在跑——这时去确认会被拒(「运行正在运行,没有待处理的审批」):先等运行停下来,再取待办。""" + await _wait(run_id, ("interrupted",)) task = await _task(run_id, "action_confirm") card = (await tasks.detail(task.id, ANN))["payload"] out = await tasks.respond(task.id, ANN, decision="approve", payload_hash=card["payload_hash"])