The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(channels): cover provider alias route selection
Steven Enamakel6d0a91ebe94f
diff --git a/crates/openhuman-core/src/channels/routes_provider_tests.rs b/crates/openhuman-core/src/channels/routes_provider_tests.rsindex b02baaf73f..fba9facaf6 100644--- a/crates/openhuman-core/src/channels/routes_provider_tests.rs+++ b/crates/openhuman-core/src/channels/routes_provider_tests.rs@@ -57,12 +57,18 @@ async fn handle_runtime_command_routes_configured_provider_slug_and_alias() {).await);+ let expected = if requested == "custom-route" {+ "custom-route"+ } else {+ "openhuman"+ };+ assert_eq!(get_route_selection(&ctx, key).provider, expected);}- assert_eq!(get_route_selection(&ctx, key).provider, "openhuman");let sent = channel_impl.sent.lock().unwrap();- assert_eq!(sent.len(), 1, "the configured slug should be accepted");+ assert_eq!(sent.len(), 2, "both configured routes should be accepted");assert!(sent[0].content.contains("Provider switched to `custom-route`"));+ assert!(sent[1].content.contains("Provider switched to `openhuman`"));}