Skip to content

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

test(webhooks): assert queue handoff matches config

Steven Enamakelb7f288fdd65f
diff --git a/crates/openhuman-core/src/skills/webhooks/bus_tests.rs b/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
index d5db49e3e9..2454f69a2b 100644
--- a/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
+++ b/crates/openhuman-core/src/skills/webhooks/bus_tests.rs
@@ -165,9 +165,14 @@ mod inbound {
}
async fn route(rig: &Rig, config: Option<crate::config::Config>, correlation_id: &str) {
+ let queues_active = config.as_ref().is_some_and(crate::inbound::active);
let envelope = request();
let queued =
route_agent_trigger(config, &envelope, correlation_id, Some(rig.client.clone())).await;
+ assert_eq!(
+ queued, queues_active,
+ "webhook queue handoff did not match config"
+ );
if !queued {
triage_agent_directly(
DispatchCtx::host_default(),