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
feat(storage): add fence and lease document tests
Steven Enamakele15c3b31ccb6
diff --git a/crates/openhuman-core/src/storage/fence_tests.rs b/crates/openhuman-core/src/storage/fence_tests.rsindex fb9cee2acb..eaf7c7145a 100644--- a/crates/openhuman-core/src/storage/fence_tests.rs+++ b/crates/openhuman-core/src/storage/fence_tests.rs@@ -34,6 +34,7 @@ fn a_fence_covers_its_exact_scope_and_prefix_only() {let grant = LeaseGrant {key: "alice".into(),epoch: 1,+ version: tinystoragedrivers::Version(1),expires_at_ms: 1_000,previous_unclean: false,};diff --git a/crates/openhuman-core/src/storage/lease_documents_tests.rs b/crates/openhuman-core/src/storage/lease_documents_tests.rsindex b8725bb35a..cbf14da087 100644--- a/crates/openhuman-core/src/storage/lease_documents_tests.rs+++ b/crates/openhuman-core/src/storage/lease_documents_tests.rs@@ -53,6 +53,7 @@ async fn renew_extends_and_keeps_the_epoch() {let renewed = a.renew(&grant, 900).await.unwrap();assert_eq!(renewed.epoch, grant.epoch);assert_eq!(renewed.expires_at_ms, 1_900);+ assert!(renewed.version > grant.version);assert!(matches!(b.acquire("k", 1_500).await,Err(LeaseError::Held(_))