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
test: isolate memory flush latch regression
lorenzozanee61f3b42008bf
diff --git a/tests/raw_coverage/memory_flush_latch_raw_coverage_e2e.rs b/tests/raw_coverage/memory_flush_latch_raw_coverage_e2e.rsindex db490d6b26..5c454ff29d 100644--- a/tests/raw_coverage/memory_flush_latch_raw_coverage_e2e.rs+++ b/tests/raw_coverage/memory_flush_latch_raw_coverage_e2e.rs@@ -16,19 +16,10 @@//! success. Nothing here asserts which error the driver gives, only that the//! second call got as far as asking.-use std::sync::OnceLock;-use openhuman_core::config::Config;use openhuman_core::memory::read_rpc;use tempfile::TempDir;-static WORKSPACE: OnceLock<TempDir> = OnceLock::new();--/// A scope string unique to this test.-///-/// `ACTIVE` is a process-global `static`, and every `raw_coverage` suite now-/// shares one test binary, so a scope another test also used would make this-/// one's result depend on run order.const SCOPE: &str = "memory_flush_latch_raw_coverage_e2e::retry-after-failure";/// A flush that fails must not latch its scope out of every later attempt.@@ -39,11 +30,11 @@ const SCOPE: &str = "memory_flush_latch_raw_coverage_e2e::retry-after-failure";/// With the pre-#5779 latch the first failure would leave `SCOPE` in `ACTIVE`,/// and the second call would short-circuit to `Ok` before touching the driver.#[tokio::test]-#[ignore = "TODO(#6386): aggregate-suite ordering leaks state into this latch test"]async fn a_failed_flush_source_tree_can_be_retried_for_the_same_scope() {- let workspace = WORKSPACE.get_or_init(|| TempDir::new().expect("workspace tempdir"));+ let workspace = TempDir::new().expect("workspace tempdir");let mut config = Config::default();config.workspace_dir = workspace.path().to_path_buf();+ config.subsystems.memory.driver = "null".into();let first = read_rpc::flush_source_tree_rpc(&config, SCOPE).await;assert!(