Skip to content

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

chore: files changed crates/openhuman-core/src/memory/state_store_tests.rs

Steven Enamakel87a045c55a7a
diff --git a/crates/openhuman-core/src/memory/state_store_tests.rs b/crates/openhuman-core/src/memory/state_store_tests.rs
index ac622840a2..c0842d4d30 100644
--- a/crates/openhuman-core/src/memory/state_store_tests.rs
+++ b/crates/openhuman-core/src/memory/state_store_tests.rs
@@ -1,8 +1,7 @@
+use super::*;
use tinymemory_api::{ConsolidateRequest, ItemKind, Namespace, Reach};
use tinymemory_tools::BackgroundJob;
-use super::*;
-
#[tokio::test]
async fn host_memory_state_adapters_use_the_state_kv_port() {
let tmp = tempfile::tempdir().unwrap();
@@ -34,7 +33,7 @@ async fn host_memory_state_adapters_use_the_state_kv_port() {
"jobs",
] {
assert!(
- super::load::<serde_json::Value>(workspace, name)
+ load::<serde_json::Value>(workspace, name)
.unwrap()
.is_some(),
"memory state value {name} is stored through the KV port"
@@ -49,14 +48,14 @@ fn state_values_do_not_leak_between_workspaces() {
let first_config = crate::memory::test_fixtures::config_in(&first);
let second_config = crate::memory::test_fixtures::config_in(&second);
- super::save(&first_config.workspace_dir, "isolation", &"first workspace").unwrap();
+ save(&first_config.workspace_dir, "isolation", &"first workspace").unwrap();
assert_eq!(
- super::load::<String>(&first_config.workspace_dir, "isolation").unwrap(),
+ load::<String>(&first_config.workspace_dir, "isolation").unwrap(),
Some("first workspace".to_string())
);
assert!(
- super::load::<String>(&second_config.workspace_dir, "isolation")
+ load::<String>(&second_config.workspace_dir, "isolation")
.unwrap()
.is_none(),
"a second workspace must not read the first workspace's state"