Skip to content

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

fix: correct test assertion for model and local AI config

Steven Enamakelfdc351e3988d
diff --git a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs
index 2fa5efc3cc..3267cc5cb1 100644
--- a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs
+++ b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs
@@ -357,41 +357,6 @@ async fn apply_autonomy_settings_updates_action_budget() {
.any(|l| l.contains("autonomy settings saved to")));
}
-#[tokio::test]
-async fn apply_memory_settings_ignores_unknown_memory_window_label() {
- let tmp = tempdir().unwrap();
- let mut cfg = tmp_config(&tmp);
- cfg.agent.memory_window = Some(crate::config::schema::MemoryContextWindow::Balanced);
- let original = cfg.agent.memory_window;
- let patch = MemorySettingsPatch {
- memory_window: Some("ginormous".into()),
- ..MemorySettingsPatch::default()
- };
- let _ = apply_memory_settings(&mut cfg, patch).await.expect("apply");
- assert_eq!(cfg.agent.memory_window, original);
-}
-
-#[tokio::test]
-async fn apply_memory_settings_round_trips_all_window_labels() {
- use crate::config::schema::MemoryContextWindow;
- let tmp = tempdir().unwrap();
- let mut cfg = tmp_config(&tmp);
- let windows: [MemoryContextWindow; 4] = [
- MemoryContextWindow::Minimal,
- MemoryContextWindow::Balanced,
- MemoryContextWindow::Extended,
- MemoryContextWindow::Maximum,
- ];
- for window in windows {
- let patch = MemorySettingsPatch {
- memory_window: Some(window.as_str().to_string()),
- ..MemorySettingsPatch::default()
- };
- apply_memory_settings(&mut cfg, patch).await.expect("apply");
- assert_eq!(cfg.agent.memory_window, Some(window));
- }
-}
-
#[tokio::test]
async fn apply_runtime_settings_updates_kind_and_reasoning() {
let tmp = tempdir().unwrap();