Skip to content

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

test(channels): update runtime command consumption expectation

Steven Enamakelfcb2e00591e1
diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rs
index 5371eb9c59..8cb722ff90 100644
--- a/crates/openhuman-core/src/channels/routes_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_tests.rs
@@ -509,7 +509,7 @@ async fn handle_runtime_command_telegram_status_replies_without_agent() {
}
#[tokio::test]
-async fn handle_runtime_command_without_target_channel_still_consumes_command() {
+async fn handle_runtime_command_without_target_or_capabilities_is_not_consumed() {
let ctx = runtime_context(PathBuf::from("/tmp"));
let msg = inbound(
"1".into(),
@@ -522,7 +522,9 @@ async fn handle_runtime_command_without_target_channel_still_consumes_command()
let handled =
handle_runtime_command_if_needed(&ctx, &msg, None, &conversation_history_key(&msg)).await;
- assert!(handled);
+ // This fixture has neither a target channel nor a configured module
+ // provider, so the module cannot verify that remote control is enabled.
+ assert!(!handled);
}
#[tokio::test]