Skip to content

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

test(openhuman-embed): record relay origins instead of asserting message ids

Steven Enamakel0a3ce8a161b7
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index dee9d24b8c..b950dfff7e 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -74,10 +74,10 @@ impl Tool for TenantTool {
assert_eq!(channel, "telegram");
assert_eq!(sender.as_deref(), Some("sender"));
assert_eq!(reply_target, "chat");
- assert!(matches!(
- message_id.as_str(),
- "message" | "reopened-message"
- ));
+ self.relay_origins
+ .lock()
+ .unwrap()
+ .push((profile.clone(), message_id));
}
origin => panic!("unexpected turn origin: {origin:?}"),
}