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(storage): cover cached handle fencing and rename sqlite case
Steven Enamakeleace4f82aace
diff --git a/crates/openhuman-core/src/storage/fenced_backend_upstream_tests.rs b/crates/openhuman-core/src/storage/fenced_backend_upstream_tests.rsindex 9eb117b0e8..b91854c1fa 100644--- a/crates/openhuman-core/src/storage/fenced_backend_upstream_tests.rs+++ b/crates/openhuman-core/src/storage/fenced_backend_upstream_tests.rs@@ -350,13 +350,22 @@ async fn driver_refuses_the_write_the_host_check_admitted(shared: Arc<dyn Storag.unwrap().unwrap();assert_eq!(stored.doc["v"], 1, "the late write did not land");- // Latched: every later write is refused before it reaches the driver.+ // The cached handle remains protected by the driver's condition too.assert!(scoped.streams().append("log", json!(1)).await.is_err());- assert!(fence.is_fenced());+ assert_eq!(+ shared+ .for_scope(&Scope::new("profile:alice").unwrap())+ .unwrap()+ .streams()+ .len("log")+ .await+ .unwrap(),+ 0+ );}#[tokio::test]-async fn memory_driver_refuses_a_write_after_a_takeover_the_check_missed() {+async fn sqlite_driver_refuses_a_write_after_a_takeover_the_check_missed() {let backend = shared();driver_refuses_the_write_the_host_check_admitted(Arc::clone(&backend.backend)).await;}