Skip to content

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

test(tinyagents): pin persistent storage in reaper tests

Steven Enamakel04fc73522ca8
diff --git a/crates/openhuman-core/src/agent/tinyagents/reaper_tests.rs b/crates/openhuman-core/src/agent/tinyagents/reaper_tests.rs
index 9a6102f739..da06c4f6e7 100644
--- a/crates/openhuman-core/src/agent/tinyagents/reaper_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/reaper_tests.rs
@@ -79,6 +79,7 @@ async fn a_build_only_runtime_is_swept_before_it_can_be_invoked() {
// `OPENHUMAN_WORKSPACE` names the root; the resolved workspace is the
// `workspace` directory under it, which is what the sweep will read.
let workspace = tmp.join("workspace");
+ crate::storage::local::use_persistent_default_for_test(&workspace);
let store = crate::storage::sessions::status_store_for(&workspace).expect("status store");
let orphan = seed_status(&store, ExecutionStatus::Running).await;
assert_eq!(store.list_active().await.unwrap().len(), 1);
@@ -140,6 +141,7 @@ async fn boot_child() {
let root = std::path::PathBuf::from(
std::env::var_os("OPENHUMAN_WORKSPACE").expect("parent exports OPENHUMAN_WORKSPACE"),
);
+ crate::storage::local::use_persistent_default_for_test(&root.join("workspace"));
let built = CoreBuilder::new(HostKind::Cli)
.services(ServiceSet::none())
.domains(DomainSet::harness())