Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(cron): use shared memory backend helper in documents port test

Steven Enamakelcfe754157ebb
diff --git a/crates/openhuman-core/src/cron/documents_port_tests.rs b/crates/openhuman-core/src/cron/documents_port_tests.rs
index 4e57f6e933..8e4d50a0f0 100644
--- a/crates/openhuman-core/src/cron/documents_port_tests.rs
+++ b/crates/openhuman-core/src/cron/documents_port_tests.rs
@@ -343,7 +343,7 @@ async fn an_unknown_operation_is_refused_not_guessed() {
async fn one_object_is_served_per_scope_and_reused() {
let config = Config::default();
module::proxy(&config).await.unwrap();
- let backend: Arc<dyn StorageBackend> = Arc::new(MemoryStorage::new());
+ let backend: Arc<dyn StorageBackend> = crate::storage::test_support::memory_backend();
let a = DocScope::on_backend(&config, Arc::clone(&backend), Scope::local());
let b = DocScope::on_backend(&config, backend, crate::storage::scope_for_agent("other"));
let (first, again, other) = (