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(cron): use shared memory backend helper in documents port tests
Steven Enamakel01fe71e13758
diff --git a/crates/openhuman-core/src/cron/documents_port_tests.rs b/crates/openhuman-core/src/cron/documents_port_tests.rsindex 66dae0ecab..2779366c8c 100644--- a/crates/openhuman-core/src/cron/documents_port_tests.rs+++ b/crates/openhuman-core/src/cron/documents_port_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::storage::{MemoryStorage, Scope, StorageBackend};+use crate::storage::{test_support::memory_backend, Scope, StorageBackend};use serde_json::json;use tinyflows_bus::schedule::{DOCUMENT_INTERFACE, DOCUMENT_METHOD};@@ -12,7 +12,7 @@ async fn port_with_backend() -> (tinybus::Proxy, CallbackAddress, Arc<dyn Storaglet config = Config::default();// Start the module runtime and attach the module before touching the bus.module::proxy(&config).await.expect("module attaches");- let backend: Arc<dyn StorageBackend> = Arc::new(MemoryStorage::new());+ let backend = memory_backend();let scope = DocScope::on_backend(&config, Arc::clone(&backend), Scope::local());let address = address(&scope).await.expect("port is served");let runtime = crate::modules::runtime::runtime().await.unwrap();