Skip to content

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

test(cron): adjust child call count assertions

Steven Enamakelcdfab560e9a8
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 b2ff991e97..ad93973e56 100644
--- a/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_headless_descendants_tests.rs
@@ -335,8 +335,7 @@ async fn scheduled_agent_timeout_cancels_its_blocked_child_before_history_settle
);
assert_eq!(
model.child_calls.load(std::sync::atomic::Ordering::SeqCst),
- 2,
- "the child receives the denied tool result and then completes"
+ 1
);
assert!(
model
@@ -390,7 +389,8 @@ async fn scheduled_cron_child_cannot_run_its_declared_destructive_tool() {
);
assert_eq!(
model.child_calls.load(std::sync::atomic::Ordering::SeqCst),
- 1
+ 2,
+ "the child receives the denied tool result and then completes"
);
assert!(
model