Skip to content

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

test(cron): reorder assertions in agent-only limit test

Steven Enamakeld53bfe956aec
diff --git a/crates/openhuman-core/src/cron/bus_host_tests.rs b/crates/openhuman-core/src/cron/bus_host_tests.rs
index d5008b86a2..2a65751b06 100644
--- a/crates/openhuman-core/src/cron/bus_host_tests.rs
+++ b/crates/openhuman-core/src/cron/bus_host_tests.rs
@@ -301,17 +301,17 @@ async fn schedule_trigger_checks_agent_only_limits_before_running_a_flow_handler
.await
.unwrap();
+ assert_eq!(
+ calls.load(Ordering::SeqCst),
+ 0,
+ "the flow handler never ran"
+ );
assert!(!attempt.success);
assert!(
attempt.output.contains("only agent cron jobs"),
"{}",
attempt.output
);
- assert_eq!(
- calls.load(Ordering::SeqCst),
- 0,
- "the flow handler never ran"
- );
}
#[cfg(feature = "flows")]