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(profiles): capture backend url by move in host helpers
Steven Enamakelf2f05d03e54f
diff --git a/crates/openhuman-core/src/profiles/background_tests.rs b/crates/openhuman-core/src/profiles/background_tests.rsindex 815a51d723..e7c655fbac 100644--- a/crates/openhuman-core/src/profiles/background_tests.rs+++ b/crates/openhuman-core/src/profiles/background_tests.rs@@ -11,7 +11,7 @@ fn host(tmp: &tempfile::TempDir, idle_secs: u64) -> ProfileHost {saas.idle_evict_secs = idle_secs;let backend_path = tmp.path().join("profile-storage");let backend_url = format!("sqlite:{}", backend_path.display());- let backend = crate::storage::block_on_anyhow(async {+ let backend = crate::storage::block_on_anyhow(async move {crate::storage::open(&backend_url).await.map_err(anyhow::Error::from)diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rsindex 355df0fd12..6797db07ac 100644--- a/crates/openhuman-core/src/profiles/host_tests.rs+++ b/crates/openhuman-core/src/profiles/host_tests.rs@@ -247,7 +247,7 @@ fn host(tmp: &tempfile::TempDir, max_open: usize, idle_secs: u64) -> ProfileHostsaas.idle_evict_secs = idle_secs;let backend_path = tmp.path().join("profile-storage");let backend_url = format!("sqlite:{}", backend_path.display());- let backend = crate::storage::block_on_anyhow(async {+ let backend = crate::storage::block_on_anyhow(async move {crate::storage::open(&backend_url).await.map_err(anyhow::Error::from)