From b1736095a03e159f0ab43214b56f11c71907b8f2 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Mon, 19 Oct 2026 11:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=9C=AA=E7=9F=A5=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=A0=B8=E5=AE=9E=E7=9A=84=E6=B5=8B=E8=AF=95=E5=85=88?= =?UTF-8?q?=E7=AD=89=E6=8E=92=E4=B8=8A=E6=9F=A5=E8=AF=A2=E5=86=8D=E7=9C=8B?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=9A=E8=BF=90=E8=A1=8C=E5=85=88=E6=8C=82?= =?UTF-8?q?=E8=B5=B7=E3=80=81runner=20=E5=86=8D=E5=AE=89=E6=8E=92=E6=A0=B8?= =?UTF-8?q?=E5=AE=9E=EF=BC=88actions.on=5Funknown=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E8=A1=8C=E8=B7=91=E6=97=B6=E6=B5=8B=E8=AF=95=E4=BC=9A?= =?UTF-8?q?=E5=9C=A8=E4=B8=AD=E9=97=B4=E8=AF=BB=E5=88=B0=E8=BF=98=E6=B2=A1?= =?UTF-8?q?=E6=8E=92=E4=B8=8A=E6=9F=A5=E8=AF=A2=E7=9A=84=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E3=80=82=E6=B5=8B=E8=AF=95=E7=9A=84=E7=AB=9E=E6=80=81=EF=BC=8C?= =?UTF-8?q?=E4=BA=A7=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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/tests/test_process_actions.py b/backend/tests/test_process_actions.py index 0042e952..2110b39c 100644 --- a/backend/tests/test_process_actions.py +++ b/backend/tests/test_process_actions.py @@ -168,6 +168,11 @@ async def test_unknown_result_with_lookup_is_reconciled_automatically_and_sent_o await _confirm(run_id) held = await _wait(run_id, ("interrupted", "failed", "succeeded")) assert held.status == "interrupted" and held.manifest_hash is None + # 运行先挂起、runner 再安排核实(actions.on_unknown):等排上查询(记下 action.unknown)再看记录 + for _ in range(100): + if await _events(run_id, "action.unknown"): + break + await asyncio.sleep(0.05) [rec] = await _records(run_id) assert rec.state == "unknown" and rec.next_lookup_at is not None assert len(await _events(run_id, "action.unknown")) == 1