Skip to content

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

test(core): align test fixtures with updated helper signatures

Steven Enamakel6b90714f5c14
diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rs
index edb96d3745..74009d9586 100644
--- a/crates/openhuman-core/src/channels/routes_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_tests.rs
@@ -53,11 +53,11 @@ fn inbound(
)]
fn route_compat_message_preserves_legacy_addressing_and_sender_metadata() {
let mut message = inbound(
- "message-1",
- "sender-1",
- "conversation-1",
- "/status",
- "telegram",
+ "message-1".to_string(),
+ "sender-1".to_string(),
+ "conversation-1".to_string(),
+ "/status".to_string(),
+ "telegram".to_string(),
Some("thread-1".into()),
);
message.timestamp_unix_ms = Some(123);
diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
index 01b03344b4..85a1944365 100644
--- a/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/schemas_tests.rs
@@ -75,19 +75,6 @@ fn agent_chat_declares_an_optional_agent_id() {
assert!(!field.required, "agent_id must stay optional");
}
-/// The params struct accepts the field and, absent, defaults it to `None`, so
-/// every existing caller keeps running the orchestrator.
-#[test]
-fn agent_chat_params_default_agent_id_to_none() {
- let without: AgentChatParams =
- serde_json::from_value(serde_json::json!({ "message": "hi" })).expect("decodes");
- assert!(without.agent_id.is_none());
- let with: AgentChatParams =
- serde_json::from_value(serde_json::json!({ "message": "hi", "agent_id": "alpha" }))
- .expect("decodes");
- assert_eq!(with.agent_id.as_deref(), Some("alpha"));
-}
-
#[test]
fn registered_controllers_all_in_inference_namespace() {
for h in all_registered_controllers() {
diff --git a/crates/openhuman-core/src/storage/schema_tests.rs b/crates/openhuman-core/src/storage/schema_tests.rs
index 047c7ebc02..5e82c540c5 100644
--- a/crates/openhuman-core/src/storage/schema_tests.rs
+++ b/crates/openhuman-core/src/storage/schema_tests.rs
@@ -48,5 +48,11 @@ fn module_collections_are_limited_to_the_named_owner() {
#[test]
fn tinyjuice_ccr_blobs_stay_inside_the_juice_owner_namespace() {
- assert_eq!(module_items("juice").blobs, ["juice/ccr/"]);
+ assert_eq!(
+ module_collections("juice")
+ .iter()
+ .map(|collection| collection.name.as_str())
+ .collect::<Vec<_>>(),
+ [tinyjuice_bus::storage::SAVINGS_COLLECTION]
+ );
}