Skip to content

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

test(store): use memory_backend helper in scope isolation tests

Steven Enamakelb3b3d3e83816
diff --git a/crates/openhuman-core/src/desktop/notifications/store_documents_tests.rs b/crates/openhuman-core/src/desktop/notifications/store_documents_tests.rs
index a37c9a4a7f..44ca0ecbaa 100644
--- a/crates/openhuman-core/src/desktop/notifications/store_documents_tests.rs
+++ b/crates/openhuman-core/src/desktop/notifications/store_documents_tests.rs
@@ -324,7 +324,7 @@ fn an_unparseable_raw_payload_reads_as_a_string() {
#[test]
fn scopes_keep_notifications_apart() {
- let storage = MemoryStorage::new();
+ let storage = memory_backend();
docs_in(&storage, "alice")
.insert(&note("a", "slack", "hi", 0), true)
.unwrap();
diff --git a/crates/openhuman-core/src/integrations/task_sources/store_documents_tests.rs b/crates/openhuman-core/src/integrations/task_sources/store_documents_tests.rs
index ed2b9f91f2..1c13030364 100644
--- a/crates/openhuman-core/src/integrations/task_sources/store_documents_tests.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/store_documents_tests.rs
@@ -230,7 +230,7 @@ fn a_corrupt_source_is_an_error_not_a_panic() {
#[test]
fn scopes_keep_sources_apart() {
- let storage = MemoryStorage::new();
+ let storage = memory_backend();
let alice = docs_in(&storage, "alice");
alice.add_source(&source("s")).unwrap();
alice.mark_ingested("s", &task("1", "one")).unwrap();