Skip to content

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

fix(test): update test to use correct assertion for error case

Steven Enamakeld3b8c6e2e3c1
diff --git a/crates/openhuman-tinyhumans/src/transport/transport_tests.rs b/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
index 0a7c10cb88..87e68731b4 100644
--- a/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
+++ b/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
@@ -259,6 +259,17 @@ async fn install_registers_hosted_controllers_that_dispatch_through_the_transpor
("team", "get_usage"),
("referral", "get_stats"),
("announcements", "get_latest"),
+ // Account-bound methods that share a namespace with core controllers.
+ ("webhooks", "list_tunnels"),
+ ("webhooks", "get_bandwidth"),
+ ("auth", "create_channel_link_token"),
+ ("auth", "oauth_connect"),
+ ("channels", "telegram_login_start"),
+ ("channels", "discord_link_check"),
+ // ...alongside the core's own controllers in those namespaces.
+ ("webhooks", "list_registrations"),
+ ("auth", "get_state"),
+ ("channels", "list"),
] {
assert!(
rpc_method_from_parts(ns, f).is_some(),
@@ -268,6 +279,7 @@ async fn install_registers_hosted_controllers_that_dispatch_through_the_transpor
assert!(schema_for_rpc_method("openhuman.billing_get_balance").is_some());
assert!(namespace_description("billing").is_some());
assert!(namespace_description("team").is_some());
+ assert!(namespace_description("webhooks").is_some());
// A second install is a no-op for the registry, not a collision.
crate::install(crate::InstallOptions::default()).unwrap();