From 879e4766227caf041108692838db9832c7a8e27b Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 16:20:29 +0800 Subject: [PATCH] auto-sync: 2026-05-18 16:20:29 --- tests/test_e2e_v27.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_e2e_v27.py b/tests/test_e2e_v27.py index 13241e8..71bccd8 100644 --- a/tests/test_e2e_v27.py +++ b/tests/test_e2e_v27.py @@ -844,14 +844,18 @@ class TestE10FullChain: resp = client.post(f"/api/projects/{pid}/tasks", json={ "id": dep_id, "title": "依赖任务", - "status": "blocked", "depends_on": [child_ids[0]], }) assert resp.status_code == 200 - # 4. 完成 setup 子任务 + # 4. 手动把依赖任务设为 blocked(API create 默认 pending) db_path = data_root / pid / "blackboard.db" bb = Blackboard(db_path) + bb.update_task_status(dep_id, "claimed", agent="test") + bb.update_task_status(dep_id, "working", agent="test") + bb.update_task_status(dep_id, "blocked", agent="test") + + # 5. 完成 setup 子任务 for s in ["claimed", "working", "review", "done"]: bb.update_task_status(child_ids[0], s, agent="test")