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
chore(config): remove unused test file
Steven Enamakel85d6f30dd682
diff --git a/crates/openhuman-core/src/config/ops_loader_and_search_tests.rs b/crates/openhuman-core/src/config/ops_loader_and_search_tests.rsindex c47eccb9ce..4513c44b94 100644--- a/crates/openhuman-core/src/config/ops_loader_and_search_tests.rs+++ b/crates/openhuman-core/src/config/ops_loader_and_search_tests.rs@@ -393,64 +393,6 @@ fn workspace_onboarding_flag_exists_true_when_file_present() {assert_eq!(res.value, true);}-#[tokio::test]-async fn apply_memory_sync_settings_stores_interval_and_view() {- let tmp = tempdir().unwrap();- let mut cfg = tmp_config(&tmp);-- // Pick the 4h preset.- let patch = MemorySyncSettingsPatch {- sync_interval_secs: Some(14_400),- };- let outcome = apply_memory_sync_settings(&mut cfg, patch)- .await- .expect("apply");- assert_eq!(cfg.memory_sync_interval_secs, Some(14_400));- assert_eq!(outcome.value["sync_interval_secs"], 14_400);- assert_eq!(outcome.value["selected_secs"], 14_400);- assert_eq!(outcome.value["is_manual"], false);- assert_eq!(outcome.value["is_default"], false);-}--#[tokio::test]-async fn apply_memory_sync_settings_manual_only() {- let tmp = tempdir().unwrap();- let mut cfg = tmp_config(&tmp);-- let patch = MemorySyncSettingsPatch {- sync_interval_secs: Some(0),- };- let outcome = apply_memory_sync_settings(&mut cfg, patch)- .await- .expect("apply");- assert_eq!(cfg.memory_sync_interval_secs, Some(0));- assert_eq!(outcome.value["is_manual"], true);- assert_eq!(outcome.value["sync_interval_secs"], 0);-}--#[tokio::test]-async fn apply_memory_sync_settings_reset_to_default() {- let tmp = tempdir().unwrap();- let mut cfg = tmp_config(&tmp);- cfg.memory_sync_interval_secs = Some(43_200);-- // Omitted field → None → reset to default.- let patch = MemorySyncSettingsPatch {- sync_interval_secs: None,- };- let outcome = apply_memory_sync_settings(&mut cfg, patch)- .await- .expect("apply");- assert_eq!(cfg.memory_sync_interval_secs, None);- assert_eq!(outcome.value["is_default"], true);- assert!(outcome.value["sync_interval_secs"].is_null());- // The UI still gets a concrete cadence to highlight (the 24h default).- assert_eq!(- outcome.value["selected_secs"],- crate::config::DEFAULT_MEMORY_SYNC_INTERVAL_SECS- );-}-#[tokio::test]async fn apply_model_settings_updates_fields_and_persists_snapshot() {let tmp = tempdir().unwrap();@@ -474,101 +416,6 @@ async fn apply_model_settings_updates_fields_and_persists_snapshot() {);}-/// #5324 (CodeRabbit): the failed-job un-park must be scoped to an embedder-/// change. Saving an unrelated model setting (temperature, chat model, …)-/// through this shared path must leave terminally-`failed` embedding jobs-/// parked, not restart them into the same external failure. Switching the-/// embeddings provider is what un-parks them.-///-/// The gate is the host's rule, so that is what this pins: whether the driver-/// is asked at all, and what the outcome line reports. Whether the ask then-/// moves a row from `failed` to `ready` is the driver's, and is pinned in the-/// driver's own conformance suite against a real queue.-#[tokio::test]-async fn apply_model_settings_requeues_failed_jobs_only_on_embedder_change() {- let tmp = tempdir().unwrap();- let mut cfg = tmp_config(&tmp);- let driver = crate::memory::binding::install_retrying_driver_for_test(&cfg, 1);-- // Unrelated save (temperature only) — the driver must not be asked.- let unrelated = ModelSettingsPatch {- default_temperature: Some(0.5),- ..Default::default()- };- let outcome = apply_model_settings(&mut cfg, unrelated)- .await- .expect("apply");- assert_eq!(- driver.retry_calls(),- 0,- "an unrelated model save must not ask the driver to un-park anything"- );- assert!(- outcome.logs.iter().any(|m| m.contains("requeued_failed=0")),- "messages: {:?}",- outcome.logs- );-- // Now change the embeddings provider — this is the remediation, so the- // driver is asked and its count is reported.- let switch = ModelSettingsPatch {- embeddings_provider: Some("ollama:bge-m3".into()),- ..Default::default()- };- let outcome = apply_model_settings(&mut cfg, switch).await.expect("apply");- assert_eq!(- driver.retry_calls(),- 1,- "switching the embeddings provider must ask the driver to un-park"- );- assert!(- outcome.logs.iter().any(|m| m.contains("requeued_failed=1")),- "the driver's count reaches the outcome line: {:?}",- outcome.logs- );-}--/// #5324 (CodeRabbit): mirror of the model-settings gate for the memory path.-/// A `memory_window` / `auto_save` / `backend` save shares this function but-/// does not remediate the embedder, so failed jobs must stay parked; changing-/// the embedding provider un-parks them.-#[tokio::test]-async fn apply_memory_settings_requeues_failed_jobs_only_on_embedder_change() {- let tmp = tempdir().unwrap();- let mut cfg = tmp_config(&tmp);- let driver = crate::memory::binding::install_retrying_driver_for_test(&cfg, 1);-- // Unrelated save (memory window preset only) — the driver is not asked.- let unrelated = MemorySettingsPatch {- memory_window: Some("balanced".into()),- ..Default::default()- };- let outcome = apply_memory_settings(&mut cfg, unrelated)- .await- .expect("apply");- assert_eq!(- driver.retry_calls(),- 0,- "a memory-window save must not ask the driver to un-park anything"- );- assert!(outcome.logs.iter().any(|m| m.contains("requeued_failed=0")));-- // Change the embedding provider — the driver is asked.- let switch = MemorySettingsPatch {- embedding_provider: Some("ollama".into()),- ..Default::default()- };- let outcome = apply_memory_settings(&mut cfg, switch)- .await- .expect("apply");- assert_eq!(- driver.retry_calls(),- 1,- "switching the embedding provider must ask the driver to un-park"- );- assert!(outcome.logs.iter().any(|m| m.contains("requeued_failed=1")));-}-#[tokio::test]async fn apply_search_settings_sets_and_clears_allowed_domains() {let tmp = tempdir().unwrap();