Skip to content

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

test(cron): wrap scheduler error in anyhow for headless descendant test

Steven Enamakel5d3402802ffd
diff --git a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
index 47d5ab1c0d..61d7183b03 100644
--- a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
@@ -427,7 +427,7 @@ async fn scheduled_cron_child_cannot_run_its_declared_destructive_tool() {
}),
None => Ok(Vec::new()),
},
- Err(error) => Err(error.clone()),
+ Err(error) => Err(anyhow::anyhow!("{error}")),
};
eprintln!(
"scheduled child never reached its model (spawn calls: {}, child calls: {}, result: {result:?}, runs: {runs:?}, events: {events:?})",