Skip to content

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

test(webhooks): assert triage rerun before deferred webhook outcome

Steven Enamakel8e03f5826177
diff --git a/crates/openhuman-core/src/skills/webhooks/bus_tests.rs b/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
index 534ac10f14..d5db49e3e9 100644
--- a/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
+++ b/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
@@ -189,12 +189,12 @@ mod inbound {
route(&rig, Some(active_config()), "corr-deferred").await;
let applied = triage.until_applied(1, Duration::from_secs(15)).await;
+ assert_eq!(triage.runs(), 2, "triage must run again after the deferral");
assert_eq!(
applied,
vec![LABEL.to_owned()],
"the deferred webhook was dropped"
);
- assert_eq!(triage.runs(), 2, "triaged, deferred, then triaged again");
assert!(
started.elapsed() >= Duration::from_millis(350),
"retried before the deferral ran out: {:?}",