The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(openhuman-embed): use testkit memory backend in profile tests
Steven Enamakele99ff6c2d19a
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.tomlindex a8e5859fe8..0509ff957c 100644--- a/crates/openhuman-embed/Cargo.toml+++ b/crates/openhuman-embed/Cargo.toml@@ -105,6 +105,7 @@ uuid = { version = "1", features = ["v4"] }[dev-dependencies]async-trait = "0.1"+tinystoragedrivers-testkit = { path = "../../vendor/tinystoragedrivers/crates/tinystoragedrivers-testkit" }tinymemory-api = { path = "../../vendor/tinymemory/crates/tinymemory-api", features = ["conformance"] }dirs = "6"zeroize = "1"diff --git a/crates/openhuman-embed/tests/profile_cron_sweep.rs b/crates/openhuman-embed/tests/profile_cron_sweep.rsindex 54f21d2622..d94bcc497a 100644--- a/crates/openhuman-embed/tests/profile_cron_sweep.rs+++ b/crates/openhuman-embed/tests/profile_cron_sweep.rs@@ -64,7 +64,9 @@ async fn scenario() {.await;PointedInference::install(&inference.uri());// The shared backend every sweeper would contend on.- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(+ tinystoragedrivers_testkit::MemoryBackend::new(),+ ));let root = tempfile::tempdir().unwrap();let recorder = Arc::new(Recorder::default());diff --git a/crates/openhuman-embed/tests/profile_operator_tools.rs b/crates/openhuman-embed/tests/profile_operator_tools.rsindex 5dae147bf0..13e8c77c86 100644--- a/crates/openhuman-embed/tests/profile_operator_tools.rs+++ b/crates/openhuman-embed/tests/profile_operator_tools.rs@@ -119,7 +119,9 @@ async fn scenario() {.mount(&managed).await;PointedInference::install(&managed.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(+ tinystoragedrivers_testkit::MemoryBackend::new(),+ ));let root = tempfile::tempdir().unwrap();let recorder = Arc::new(Recorder::default());diff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rsindex b5760668fa..0032fbee3b 100644--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs@@ -105,7 +105,9 @@ async fn scenario() {.mount(&managed).await;PointedInference::install(&managed.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(+ tinystoragedrivers_testkit::MemoryBackend::new(),+ ));let root = tempfile::tempdir().unwrap();let store = Arc::new(InMemorySessionStores::new());diff --git a/crates/openhuman-embed/tests/profile_turn_serialization.rs b/crates/openhuman-embed/tests/profile_turn_serialization.rsindex 22b2756cf1..fd1126d8e3 100644--- a/crates/openhuman-embed/tests/profile_turn_serialization.rs+++ b/crates/openhuman-embed/tests/profile_turn_serialization.rs@@ -83,7 +83,9 @@ async fn scenario() {.mount(&inference).await;PointedInference::install(&inference.uri());- openhuman_core::storage::install(Arc::new(openhuman_core::storage::MemoryStorage::new()));+ openhuman_core::storage::install(Arc::new(+ tinystoragedrivers_testkit::MemoryBackend::new(),+ ));let root = tempfile::tempdir().unwrap();let runtime = ProfileRuntime::builder(SaasConfig::new(root.path()))