Skip to content

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

test(storage_import): update tinybox test setup

Steven Enamakel42d51c96bb44
diff --git a/crates/openhuman-core/src/modules/storage_import_tinybox_tests.rs b/crates/openhuman-core/src/modules/storage_import_tinybox_tests.rs
index 69716e562d..1aa20be47a 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinybox_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinybox_tests.rs
@@ -1,12 +1,11 @@
use super::*;
use serde_json::json;
use sha2::Digest;
-use tinystoragedrivers::{MemoryStorage, Precondition, Scope, StorageBackend};
+use crate::storage::{Precondition, Scope, Storage};
+use tinystoragedrivers_testkit::memory_storage;
-fn scoped() -> ScopedStorage {
- MemoryStorage::new()
- .for_scope(&Scope::new("module:tinybox@local").unwrap())
- .unwrap()
+fn scoped() -> Storage {
+ memory_storage(&Scope::new("module:tinybox@local").unwrap())
}
const INDEX: &str = r#"{"jails":{"j1":{"id":"j1","label":"build","dir":"/w/jails/j1","backend_at_create":"landlock","created_at_unix":10,"updated_at_unix":20,"notes":"keep"}}}"#;