Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(orchestration): include pause output in task id assertion

Steven Enamakelada6310e3d0e
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index e42ab1b6e6..64cfca2f7a 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -456,7 +456,7 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {
.output()
.lines()
.find_map(|line| line.strip_prefix("task_id: "))
- .expect("pause envelope carries task id")
+ .unwrap_or_else(|| panic!("pause envelope carries task id: {}", paused.output()))
.to_owned();
assert!(paused.output().contains("which file should I inspect?"));