Skip to content

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

test(storage): use shared memory backend in tinyconnectors import tests

Steven Enamakelcdeb3254809f
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyconnectors_tests.rs b/crates/openhuman-core/src/modules/storage_import_tinyconnectors_tests.rs
index 7c73384140..2c45dc3ad9 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyconnectors_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyconnectors_tests.rs
@@ -1,10 +1,12 @@
use super::*;
-use crate::storage::{Precondition, Scope, Storage};
+use crate::storage::{Precondition, Storage, scope_for_module};
+use crate::storage::test_support::memory_backend;
use sha2::Digest;
-use tinystoragedrivers_testkit::memory_storage;
fn scoped() -> Storage {
- memory_storage(&Scope::new("module:tinyconnectors@local").unwrap())
+ let backend = memory_backend();
+ let scope = scope_for_module(None, "tinyconnectors").unwrap();
+ backend.for_scope(&scope).unwrap()
}
/// A state directory as the pre-storage module left it.