Skip to content

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

test(channels): annotate projected events with scoped web event type

Steven Enamakela1507afcbfec
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
index 3f111bb477..5ebde6421c 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
@@ -619,17 +619,17 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()
&final_result
));
- let mut projected = Vec::new();
+ let mut projected: Vec<crate::web_chat::ScopedWebEvent> = Vec::new();
let mut gateway_terminals = Vec::new();
tokio::time::timeout(Duration::from_secs(5), async {
while projected
.iter()
- .filter(|e: &&crate::web_chat::WebChannelEvent| e.event_name() == "chat_message")
+ .filter(|e: &&crate::web_chat::ScopedWebEvent| e.event_name() == "chat_message")
.count()
< 2
|| projected
.iter()
- .filter(|e: &&crate::web_chat::WebChannelEvent| e.event_name() == "chat_done")
+ .filter(|e: &&crate::web_chat::ScopedWebEvent| e.event_name() == "chat_done")
.count()
< 1
|| gateway_terminals.len() < 3