Skip to content

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

test(host_agent): add assertion for channel provider in dispatch tests

Steven Enamakel4d16e5b07382
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
index c292ce7f92..fec0177b2a 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs
@@ -529,6 +529,11 @@ async fn native_host_agent_turn_enforces_the_configured_channel_deadline_inner()
.account_id
.clone()
.expect("prepared native channel has an account identity");
+ assert_eq!(
+ tinychannels_bus::provider_id(&account_id),
+ prepared.envelope.channel.id,
+ "the prepared account selects the configured provider"
+ );
let channel_object = fixture_client
.object_client("tinychannels", tinychannels_module::OBJECT_PATH)
.await