Skip to content

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

fix(tests): correct struct initialisation in agent settings tests

Steven Enamakel56f2fd331557
diff --git a/crates/openhuman-core/src/config/ops_agent_paths_tests.rs b/crates/openhuman-core/src/config/ops_agent_paths_tests.rs
index 9442bb3949..8e82902601 100644
--- a/crates/openhuman-core/src/config/ops_agent_paths_tests.rs
+++ b/crates/openhuman-core/src/config/ops_agent_paths_tests.rs
@@ -60,6 +60,7 @@ async fn apply_agent_settings_rejects_unknown_chat_agent_id() {
AgentSettingsPatch {
chat_agent_id: Some("typoed_agent".into()),
..AgentSettingsPatch::default()
+ ..AgentSettingsPatch::default()
},
)
.await
diff --git a/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs b/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
index b5e586e14d..fbcd3c4aaa 100644
--- a/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
+++ b/crates/openhuman-core/src/config/ops_voice_and_autonomy_tests.rs
@@ -612,7 +612,7 @@ async fn apply_agent_settings_updates_timeout_and_persists_snapshot() {
&mut cfg,
AgentSettingsPatch {
agent_timeout_secs: Some(300),
- chat_agent_id: None,
+ ..AgentSettingsPatch::default()
},
)
.await